Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9e417e9 authored by Tony Lindgren's avatar Tony Lindgren Committed by Russell King
Browse files

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: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f00ec48f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -567,6 +567,7 @@ void smp_send_stop(void)
{
	cpumask_t mask = cpu_online_map;
	cpu_clear(smp_processor_id(), mask);
	if (!cpus_empty(mask))
		send_ipi_message(&mask, IPI_CPU_STOP);
}