x86/vmware: Read tsc_khz only once at boot time
authorAlexey Makhalov <amakhalov@vmware.com>
Thu, 20 Oct 2016 05:02:11 +0000 (22:02 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 Oct 2016 08:12:11 +0000 (10:12 +0200)
commitcf11372949434fc4a6194b1ed9eb861d08032d08
tree20c5ecbe1186df54f94b6762d17d47f9d9dd8491
parent1a1891d762d6e64daf07b5be4817e3fbb29e3c59
x86/vmware: Read tsc_khz only once at boot time

Re-factor the vmware platform setup code to query the hypervisor for tsc
frequency only once during boot. Since the VMware hypervisor guarantees
constant TSC, calibrate_tsc now uses the saved value.

Signed-off-by: Alexey Makhalov <amakhalov@vmware.com>
Acked-by: Alok N Kataria <akataria@vmware.com>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20161020050211.GA25304@amakhalov-virtual-machine
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/vmware.c