Commit:     17f34f0ec96783851abcabf9878f8237ac67e4e7
Parent:     ec6fb1ad84551741c14a05918cc0e04dea928fc0
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Mon May 14 02:01:52 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon May 14 02:01:52 2007 -0700

    [SPARC64]: Add missing cpus_empty() check in hypervisor xcall handling.
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 arch/sparc64/kernel/smp.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index 8087d67..24fdf1d 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/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.
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to