From cbf8a48b561da69043f747f86ed735c4a9e786ef Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 14 May 2007 02:01:52 -0700 Subject: [PATCH] --- yaml --- r: 56365 b: refs/heads/master c: 17f34f0ec96783851abcabf9878f8237ac67e4e7 h: refs/heads/master i: 56363: 378af0cdb2789adbcb333aa6c318d80f47dbe5dd v: v3 --- [refs] | 2 +- trunk/arch/sparc64/kernel/smp.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 27ff707c9438..f65fbe6f82f4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ec6fb1ad84551741c14a05918cc0e04dea928fc0 +refs/heads/master: 17f34f0ec96783851abcabf9878f8237ac67e4e7 diff --git a/trunk/arch/sparc64/kernel/smp.c b/trunk/arch/sparc64/kernel/smp.c index 8087d67a0cf8..24fdf1d0adc5 100644 --- a/trunk/arch/sparc64/kernel/smp.c +++ b/trunk/arch/sparc64/kernel/smp.c @@ -561,6 +561,9 @@ static void hypervisor_xcall_deliver(u64 data0, u64 data1, u64 data2, cpumask_t unsigned long flags, status; int cnt, retries, this_cpu, prev_sent, i; + if (cpus_empty(mask)) + return; + /* We have to do this whole thing with interrupts fully disabled. * Otherwise if we send an xcall from interrupt context it will * corrupt both our mondo block and cpu list state.