sched/clock: Initialize all per-CPU state before switching (back) to unstable
authorPeter Zijlstra <peterz@infradead.org>
Fri, 21 Apr 2017 10:11:53 +0000 (12:11 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 May 2017 08:15:17 +0000 (10:15 +0200)
commitcf15ca8deda86b27b66e27848b4b0fe58098fc0b
tree9adb684132d9504daf6c9927d4cea67cea83c833
parentaa7b630ea023d2d70b34af18cea92f31429c1db0
sched/clock: Initialize all per-CPU state before switching (back) to unstable

In preparation for not keeping the sched_clock_tick() active for
stable TSC, we need to explicitly initialize all per-CPU state
before switching back to unstable.

Note: this patch looses the __gtod_offset calculation; it will be
restored in the next one.

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>
kernel/sched/clock.c