diff options
author | Jeremy Fitzhardinge <jeremy@xensource.com> | 2007-07-17 21:37:07 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2007-07-18 11:47:45 -0400 |
commit | fefa629abebe328cf6d07f99fe5796dbfc3e4981 (patch) | |
tree | 81308b3c852a0fa8344fd017ebf2a7f9f19ed042 /arch/i386/xen/smp.c | |
parent | 0d160211965b79de989cf2d170985abeb8da5ec6 (diff) |
xen: machine operations
Make the appropriate hypercalls to halt and reboot the virtual machine.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'arch/i386/xen/smp.c')
-rw-r--r-- | arch/i386/xen/smp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/xen/smp.c b/arch/i386/xen/smp.c index a91587fbf5c2..a620918f87ee 100644 --- a/arch/i386/xen/smp.c +++ b/arch/i386/xen/smp.c | |||
@@ -311,9 +311,7 @@ static void stop_self(void *v) | |||
311 | 311 | ||
312 | void xen_smp_send_stop(void) | 312 | void xen_smp_send_stop(void) |
313 | { | 313 | { |
314 | cpumask_t mask = cpu_online_map; | 314 | smp_call_function(stop_self, NULL, 0, 0); |
315 | cpu_clear(smp_processor_id(), mask); | ||
316 | xen_smp_call_function_mask(mask, stop_self, NULL, 0); | ||
317 | } | 315 | } |
318 | 316 | ||
319 | void xen_smp_send_reschedule(int cpu) | 317 | void xen_smp_send_reschedule(int cpu) |