]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tsc: Detect random warps
authorThomas Gleixner <tglx@linutronix.de>
Sat, 19 Nov 2016 13:47:35 +0000 (13:47 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Nov 2016 18:23:15 +0000 (19:23 +0100)
commitbb2e5d276ea0ae03fb6ed47610b62db4eeeb662e
tree6c3039cac6d3f0ba02289dd05d5d1c4b2248056e
parente6329be0a9c8e0561750626659ece56afee8d078
x86/tsc: Detect random warps

If time warps can be observed then they should only ever be observed on one
CPU. If they are observed on both CPUs then the system is completely hosed.

Add a check for this condition and notify if it happens.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: http://lkml.kernel.org/r/20161119134017.574838461@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_sync.c