From: Tony Lindgren Date: Mon, 20 Sep 2010 23:43:19 +0000 (+0100) Subject: ARM: 6402/1: Don't send IPI in smp_send_stop if there's only one CPU X-Git-Tag: firefly_0821_release~7613^2~3645^2~9^5~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9e417e901e891d139f4d5fd750959e4a862d9f7;p=firefly-linux-kernel-4.4.55.git ARM: 6402/1: Don't send IPI in smp_send_stop if there's only one CPU No need to send IPI if there's one CPU, especially when booting systems with CONFIG_SMP_ON_UP that may not even support IPI. Signed-off-by: Tony Lindgren Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 40dc74f2b27f..32e16da5cbce 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -567,7 +567,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); } /*