[SPARC64]: Add missing cpus_empty() check in hypervisor xcall handling.
authorDavid S. Miller <davem@sunset.davemloft.net>
Mon, 14 May 2007 09:01:52 +0000 (02:01 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 14 May 2007 09:01:52 +0000 (02:01 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/smp.c

index 8087d67a0cf8a31f155ae0dd39237e767b62305c..24fdf1d0adc512feac2b429288035a8eb67fa58d 100644 (file)
@@ -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.