]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff22f4667c4668864e9b81ff44799d0c4b6a90f8
treeab2a77aec71450ba11c13a8f31e505df173efd78
parente7cd62a456899fee48a401830c939752c0a7b49e
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