]> git.baikalelectronics.ru Git - kernel.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)
commit32e36729c9abd81237caf9cd07a84a6f6c7f77d6
tree97b24e0d910f32908e36f3e921f4e6d3287c9955
parent11139d7c8ba14b4f9391bedffcf2b1603be66f2b
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