From: David Miller Date: Tue, 15 May 2007 08:37:56 +0000 (-0700) Subject: [PATCH] SPARC64: Add missing cpus_empty() check in hypervisor xcall handling. X-Git-Tag: v2.6.21.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38112b91c85831aa199174b9f52d6f90fe37307a;p=thirdparty%2Fkernel%2Fstable.git [PATCH] SPARC64: Add missing cpus_empty() check in hypervisor xcall handling. Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index fc99f7b8012f4..8ad7bdb062d44 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c @@ -566,6 +566,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.