From: David S. Miller Date: Mon, 14 May 2007 09:01:52 +0000 (-0700) Subject: [SPARC64]: Add missing cpus_empty() check in hypervisor xcall handling. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17f34f0ec96783851abcabf9878f8237ac67e4e7;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [SPARC64]: Add missing cpus_empty() check in hypervisor xcall handling. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 8087d67a0cf8..24fdf1d0adc5 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.