x86/tsc: Use X86_FEATURE_TSC_ADJUST in detect_art()
authorThomas Gleixner <tglx@linutronix.de>
Sat, 19 Nov 2016 13:47:33 +0000 (13:47 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Nov 2016 18:23:15 +0000 (19:23 +0100)
commit7b3d2f6e08ed5eb6bcf6912938f7a542405f8e8e
tree0e6940350eeba63f102e93b8fb34b6f7e47df97c
parent984fecebda3b9c8e3d75f8492593da71c58972b3
x86/tsc: Use X86_FEATURE_TSC_ADJUST in detect_art()

The art detection uses rdmsrl_safe() to detect the availablity of the
TSC_ADJUST MSR.

That's pointless because we have a feature bit for this. Use it.

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.483561692@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc.c