]> git.hungrycats.org Git - linux/commitdiff
[PATCH] SPARC64: Add missing cpus_empty() check in hypervisor xcall handling.
authorDavid Miller <davem@davemloft.net>
Tue, 15 May 2007 08:37:56 +0000 (01:37 -0700)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:51 +0000 (14:32 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/sparc64/kernel/smp.c

index fc99f7b8012f46157461cae1061a8c1544e30909..8ad7bdb062d44cc9257d518b22668e2d0438181f 100644 (file)
@@ -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.