KVM: x86: Harden against cpufreq
authorZachary Amsden <zamsden@redhat.com>
Sat, 10 Oct 2009 02:26:08 +0000 (16:26 -1000)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:18 +0000 (09:32 +0200)
commit6b7d7e762b238f908fe4c3345c2c6eb5c3fdbd59
treeab2a77aec71450ba11c13a8f31e505df173efd78
parent565d0998ecac8373b9a9ecd5991abe74318cd235
KVM: x86: Harden against cpufreq

If cpufreq can't determine the CPU khz, or cpufreq is not compiled in,
we should fallback to the measured TSC khz.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c