summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2016-12-15 07:35:52 -0500
committerIngo Molnar <mingo@kernel.org>2017-01-14 05:29:59 -0500
commit9881b024b7d7671f6a014091bc96506b89081802 (patch)
tree83319d1a51c4e7a880c329aaca38d9833dc8d4ce /init/main.c
parent555570d744f8150d3fce6083f144026cd1e63627 (diff)
sched/clock: Delay switching sched_clock to stable
Currently we switch to the stable sched_clock if we guess the TSC is usable, and then switch back to the unstable path if it turns out TSC isn't stable during SMP bringup after all. Delay switching to the stable path until after SMP bringup is complete. This way we'll avoid switching during the time we detect the worst of the TSC offences. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index b0c9d6facef9..19228149386c 100644
--- a/init/main.c
+++ b/init/main.c
@@ -625,7 +625,6 @@ asmlinkage __visible void __init start_kernel(void)
625 numa_policy_init(); 625 numa_policy_init();
626 if (late_time_init) 626 if (late_time_init)
627 late_time_init(); 627 late_time_init();
628 sched_clock_init();
629 calibrate_delay(); 628 calibrate_delay();
630 pidmap_init(); 629 pidmap_init();
631 anon_vma_init(); 630 anon_vma_init();