diff options
author | Tony Lindgren <tony@atomide.com> | 2010-09-20 19:43:19 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-10-04 15:23:36 -0400 |
commit | f9e417e901e891d139f4d5fd750959e4a862d9f7 (patch) | |
tree | 39461fd5a6e3d0e22143d6bed91b54928c9ee62f /arch/arm/kernel/smp.c | |
parent | f00ec48fadf5e37e7889f14cff900aa70d18b644 (diff) |
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>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r-- | arch/arm/kernel/smp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
567 | { | 567 | { |
568 | cpumask_t mask = cpu_online_map; | 568 | cpumask_t mask = cpu_online_map; |
569 | cpu_clear(smp_processor_id(), mask); | 569 | cpu_clear(smp_processor_id(), mask); |
570 | send_ipi_message(&mask, IPI_CPU_STOP); | 570 | if (!cpus_empty(mask)) |
571 | send_ipi_message(&mask, IPI_CPU_STOP); | ||
571 | } | 572 | } |
572 | 573 | ||
573 | /* | 574 | /* |