]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: x86: Make cpu_tsc_khz updates use local CPU
authorZachary Amsden <zamsden@redhat.com>
Fri, 20 Aug 2010 08:07:21 +0000 (22:07 -1000)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:22 +0000 (10:51 +0200)
commit8cfdc0008542b57caadbfe013da163131a8293f4
tree97b24e0d910f32908e36f3e921f4e6d3287c9955
parentf38e098ff3a315bb74abbb4a35cba11bbea8e2fa
KVM: x86: Make cpu_tsc_khz updates use local CPU

This simplifies much of the init code; we can now simply always
call tsc_khz_changed, optionally passing it a new value, or letting
it figure out the existing value (while interrupts are disabled, and
thus, by inference from the rule, not raceful against CPU hotplug or
frequency updates, which will issue IPIs to the local CPU to perform
this very same task).

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