From: Avi Kivity Date: Thu, 24 May 2007 10:09:41 +0000 (+0300) Subject: KVM: Tune hotplug/suspend IPIs X-Git-Tag: upstream/snapshot3+hdmi~32404^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4267c41a458cd7d287dc8031468fc385c2f5b2c3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: Tune hotplug/suspend IPIs The hotplug IPIs can be called from the cpu on which we are currently running on, so use on_cpu(). Similarly, drop on_each_cpu() for the suspend/resume callbacks, as we're in atomic context here and only one cpu is up anyway. Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 3226ad4..603e8ce 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -3110,13 +3110,13 @@ static void kvm_exit_debug(void) static int kvm_suspend(struct sys_device *dev, pm_message_t state) { - on_each_cpu(hardware_disable, NULL, 0, 0); + hardware_disable(NULL); return 0; } static int kvm_resume(struct sys_device *dev) { - on_each_cpu(hardware_disable, NULL, 0, 0); + hardware_enable(NULL); return 0; }