]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52713cbd195a998377d0d5160174811ab0629e61
tree20c5ecbe1186df54f94b6762d17d47f9d9dd8491
parent23e37059ce2dbbdbde02424c979ffd7e11676420
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