]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Make the TSC ADJUST sanitizing work for tsc_reliable
authorThomas Gleixner <tglx@linutronix.de>
Thu, 9 Feb 2017 15:08:42 +0000 (16:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 10 Feb 2017 08:47:17 +0000 (09:47 +0100)
commit6cd7fc9710e5e17caef37c1a8617ad485e6b1503
treedae498d353d35fd4e89597143e9f5e125c886968
parentfd49625c937a43828fd64008b89d83439fdf2abb
x86/tsc: Make the TSC ADJUST sanitizing work for tsc_reliable

When the TSC is marked reliable then the synchronization check is skipped,
but that also skips the TSC ADJUST sanitizing code. So on a machine with a
wreckaged BIOS the TSC deviation between CPUs might go unnoticed.

Let the TSC adjust sanitizing code run unconditionally and just skip the
expensive synchronization checks when TSC is marked reliable.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Olof Johansson <olof@lixom.net>
Link: http://lkml.kernel.org/r/20170209151231.491189912@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_sync.c