]> git.karo-electronics.de Git - karo-tx-linux.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)
commit5f2e71e71410ecb858cfec184ba092adaca61626
treedae498d353d35fd4e89597143e9f5e125c886968
parentf2e04214ef7f7e49d1e06109ad1b2718155dab25
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