[patch-mm 25/33] x86_64: prepare idle loop for dynamic ticks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chris Wright <[email protected]>

Add tick_nohz_{stop,restart}_sched_tick to idle loop in prepartion for turning
on dynticks.  These are just noops until NO_HZ is enabled.

Signed-off-by: Chris Wright <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>

---

 arch/x86_64/kernel/process.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6.22-rc6-mm/arch/x86_64/kernel/process.c
===================================================================
--- linux-2.6.22-rc6-mm.orig/arch/x86_64/kernel/process.c	2007-07-15 17:01:24.000000000 +0200
+++ linux-2.6.22-rc6-mm/arch/x86_64/kernel/process.c	2007-07-15 17:42:36.000000000 +0200
@@ -37,6 +37,7 @@
 #include <linux/notifier.h>
 #include <linux/kprobes.h>
 #include <linux/kdebug.h>
+#include <linux/tick.h>
 
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
@@ -208,6 +209,7 @@ void cpu_idle (void)
 				__get_cpu_var(cpu_idle_state) = 0;
 
 			check_pgt_cache();
+			tick_nohz_stop_sched_tick();
 			rmb();
 			idle = pm_idle;
 			if (!idle)
@@ -228,6 +230,7 @@ void cpu_idle (void)
 			__exit_idle();
 		}
 
+		tick_nohz_restart_sched_tick();
 		preempt_enable_no_resched();
 		schedule();
 		preempt_disable();

-- 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux