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 <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Tony Lindgren 2010-09-21 00:43:19 +01:00 коммит произвёл Russell King
Родитель f00ec48fad
Коммит f9e417e901
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);
}
/*