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)
commitbec8520dca0d27c1ddac703f9d0a78275ca2603e
tree6c3039cac6d3f0ba02289dd05d5d1c4b2248056e
parent7b3d2f6e08ed5eb6bcf6912938f7a542405f8e8e
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