Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24-git11 /kernel/softirq.c

Filename:/kernel/softirq.c
Lines Added:9
Lines Deleted:2
Also changed in: (Previous) 2.6.24-git10  2.6.24-git9  2.6.24-git8  2.6.24  2.6.24-rc8  2.6.24-rc7 
(Following) 2.6.24-git12  2.6.24-git13  2.6.24-git14  2.6.24-git15  2.6.24-git16  2.6.24-git17 

Location
[  2.6.24-git11
  [  kernel
     o  softirq.c

Patch

diff --git a/kernel/softirq.c b/kernel/softirq.c
index bd89bc4..d7837d4 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -3,7 +3,9 @@
  *
  *   Copyright (C) 1992 Linus Torvalds
  *
- * Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903)
+ *   Distribute under GPLv2.
+ *
+ *   Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903)
  */
 
 #include <linux/module.h>
@@ -278,9 +280,14 @@ asmlinkage void do_softirq(void)
  */
 void irq_enter(void)
 {
+#ifdef CONFIG_NO_HZ
+   int cpu = smp_processor_id();
+   if (idle_cpu(cpu) && !in_interrupt())
+      tick_nohz_stop_idle(cpu);
+#endif
    __irq_enter();
 #ifdef CONFIG_NO_HZ
-   if (idle_cpu(smp_processor_id()))
+   if (idle_cpu(cpu))
       tick_nohz_update_jiffies();
 #endif
 }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.