aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/crash.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-13 09:46:48 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-13 09:46:48 +0000
commitf2a28ff18972e57fae69c91f0dad9b22656820cd (patch)
tree398f1709555fa7093435b1d955ae30c0a65da8fe /xen/arch/x86/crash.c
parentc918890fc53f00914e17da999b11c278973e34b5 (diff)
downloadxen-f2a28ff18972e57fae69c91f0dad9b22656820cd.tar.gz
xen-f2a28ff18972e57fae69c91f0dad9b22656820cd.tar.bz2
xen-f2a28ff18972e57fae69c91f0dad9b22656820cd.zip
[XEN] Fix kexec crash.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/crash.c')
-rw-r--r--xen/arch/x86/crash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c
index a5b0aeedf1..933846d1cd 100644
--- a/xen/arch/x86/crash.c
+++ b/xen/arch/x86/crash.c
@@ -58,9 +58,9 @@ static int crash_nmi_callback(struct cpu_user_regs *regs, int cpu)
static void smp_send_nmi_allbutself(void)
{
cpumask_t allbutself = cpu_online_map;
-
cpu_clear(smp_processor_id(), allbutself);
- send_IPI_mask(allbutself, APIC_DM_NMI);
+ if ( !cpus_empty(allbutself) )
+ send_IPI_mask(allbutself, APIC_DM_NMI);
}
static void nmi_shootdown_cpus(void)