x86, vmware: Preset lpj values when on VMware.
commit9f242dc10e0c3c1eb32d8c83c18650a35fd7f80d
authorAlok Kataria <akataria@vmware.com>
Mon, 2 Aug 2010 23:10:37 +0000 (2 16:10 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 3 Aug 2010 00:16:30 +0000 (2 17:16 -0700)
treeacdf710eadb8289a9bf3fe8813f4d3b35189015c
parent9fe6206f400646a2322096b56c59891d530e8d51
x86, vmware: Preset lpj values when on VMware.

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>
arch/x86/kernel/cpu/vmware.c