diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-24 06:09:41 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 05:05:51 -0400 |
commit | 4267c41a458cd7d287dc8031468fc385c2f5b2c3 (patch) | |
tree | 00ed5fcc4887e9eae5bb5a59144bf403b61e7e7d | |
parent | 1b6c016818a562aaea22b1a1b05b15c796b0c2f0 (diff) |
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 <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 3226ad4bce7c..603e8ce3d65e 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -3110,13 +3110,13 @@ static void kvm_exit_debug(void) | |||
3110 | 3110 | ||
3111 | static int kvm_suspend(struct sys_device *dev, pm_message_t state) | 3111 | static int kvm_suspend(struct sys_device *dev, pm_message_t state) |
3112 | { | 3112 | { |
3113 | on_each_cpu(hardware_disable, NULL, 0, 0); | 3113 | hardware_disable(NULL); |
3114 | return 0; | 3114 | return 0; |
3115 | } | 3115 | } |
3116 | 3116 | ||
3117 | static int kvm_resume(struct sys_device *dev) | 3117 | static int kvm_resume(struct sys_device *dev) |
3118 | { | 3118 | { |
3119 | on_each_cpu(hardware_disable, NULL, 0, 0); | 3119 | hardware_enable(NULL); |
3120 | return 0; | 3120 | return 0; |
3121 | } | 3121 | } |
3122 | 3122 | ||