]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86, vmware: Preset lpj values when on VMware.
authorAlok Kataria <akataria@vmware.com>
Mon, 2 Aug 2010 23:10:37 +0000 (16:10 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:30:36 +0000 (13:30 -0700)
commit94f6da84e80c01e655df88479d7b57a6d89965f2
treef16369a50ddbf2a79923b0e78bbbf1ab6f709d3a
parent3f3ed15762e959843793763db4aac37cc9bd9644
x86, vmware: Preset lpj values when on VMware.

commit 9f242dc10e0c3c1eb32d8c83c18650a35fd7f80d upstream.

When running on VMware's platform, we have seen situations where
the AP's try to calibrate the lpj values and fail to get good calibration
runs becasue of timing issues. As a result delays don't work correctly
on all cpus.

The solutions is to set preset_lpj value based on the current tsc frequency
value. This is similar to what KVM does as well.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
LKML-Reference: <1280790637.14933.29.camel@ank32.eng.vmware.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/vmware.c