]> git.baikalelectronics.ru Git - kernel.git/commit
sched/clock: Print a warning recommending 'tsc=unstable'
authorPeter Zijlstra <peterz@infradead.org>
Fri, 21 Apr 2017 10:52:52 +0000 (12:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 15 May 2017 08:15:21 +0000 (10:15 +0200)
commit3eb2a5b76786b205f3403bb334c9b98d501394e0
tree12a45176fa7fbf1fb57fef0b99a764b4b73eee4f
parente6bf8706023aa400d2e5acece8f2e1b16cb4bb74
sched/clock: Print a warning recommending 'tsc=unstable'

With our switch to stable delayed until late_initcall(), the most
likely cause of hitting mark_tsc_unstable() is the watchdog. The
watchdog typically only triggers when creative BIOS'es fiddle with the
TSC to hide SMI latency.

Since the watchdog can only detect TSC fiddling after the fact all TSC
clocks (including userspace GTOD) can already have reported funny
values.

The only way to fully avoid this, is manually marking the TSC unstable
at boot. Suggest people do this on their broken systems.

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