Merge branch 'hotplug' into devel
[firefly-linux-kernel-4.4.55.git] / arch / arm / kernel / smp.c
index 14070549e0512fdbc890866ecf97e170a0337e62..8c1959590252e7161f1da38497eddba9b0538afb 100644 (file)
@@ -614,7 +614,8 @@ void smp_send_stop(void)
 {
        cpumask_t mask = cpu_online_map;
        cpu_clear(smp_processor_id(), mask);
-       send_ipi_message(&mask, IPI_CPU_STOP);
+       if (!cpus_empty(mask))
+               send_ipi_message(&mask, IPI_CPU_STOP);
 }
 
 /*