From: Alok Kataria Date: Mon, 3 Nov 2008 19:31:28 +0000 (-0800) Subject: x86: VMware: Fix vmware_get_tsc code X-Git-Tag: v2.6.29-rc1~587^2~4^8~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bdbfe99916398dbb28d83833cc04757110f2738;p=pandora-kernel.git x86: VMware: Fix vmware_get_tsc code Impact: Fix possible failure to calibrate the TSC on Vmware near 4 GHz The current version of the code to get the tsc frequency from the VMware hypervisor, will be broken on processor with frequency (4G-1) HZ, because on such processors eax will have UINT_MAX and that would be legitimate. We instead check that EBX did change to decide if we were able to read the frequency from the hypervisor. Signed-off-by: Alok N Kataria Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed