]> git.baikalelectronics.ru Git - kernel.git/commit
x86/vmware: Use tsc_khz value for calibrate_cpu()
authorAlexey Makhalov <amakhalov@vmware.com>
Fri, 28 Oct 2016 07:54:30 +0000 (00:54 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 30 Oct 2016 07:57:07 +0000 (08:57 +0100)
commitfaf4bbced1fe31848352ba9a085ce45de73993e2
tree869798a4db92abbc247fe3cdff7ef19967f43761
parent21085596352a9a14e5be3043f33ea98666eb7f0e
x86/vmware: Use tsc_khz value for calibrate_cpu()

Commit fea1c5bfec87 ("x86/tsc: Enumerate SKL cpu_khz and tsc_khz via
CPUID") separated the calibration mechanisms for cpu_khz and tsc_khz.

Since the vmware hypervisor provides a constant frequency TSC to the guest,
this change can lead to divergence between the tsc and the cpu frequency
after vmotion, which might confuse the user.

Solve this by overriding the x86 platform cpu calibration callback with the
vmware specific tsc calibration function.

Signed-off-by: Alexey Makhalov <amakhalov@vmware.com>
Acked-by: Alok N Kataria <akataria@vmware.com>
Cc: linux-doc@vger.kernel.org
Cc: pv-drivers@vmware.com
Cc: corbet@lwn.net
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20161028075432.90579-2-amakhalov@vmware.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/vmware.c