ad3516bb4a
First, try to use CPUID Time Stamp Counter and Nominal Core Crystal Clock Information Leaf to determine the tsc hz on platforms that supports it (does not require privileged user). If the CPUID leaf is not available, then try to determine the tsc hz by reading the MSR 0xCE (requires privileged user). Default to the tsc hz estimation if both methods fail. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> Acked-by: Harry van Haaren <harry.van.haaren@intel.com> Tested-by: Bruce Richardson <bruce.richardson@intel.com>