]> 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)
commit9a1cddfd1017db1370182a02111e9ac5bb295ae7
treedae498d353d35fd4e89597143e9f5e125c886968
parentc38e2fda71acd03ebaa1cf19c41e57d3775c1fdd
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