aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-03-29 01:08:30 -0400
committerRusty Russell <rusty@rustcorp.com.au>2012-03-29 01:08:30 -0400
commit0b5f9c005def154f9c21f9be0223b65b50d54368 (patch)
treebbee9b3e549acc5886d1022c2aad46d5abfdd22e /arch/arm/kernel/smp.c
parentb5174fa3a7f4f8f150bfa3b917c92608953dfa0f (diff)
remove references to cpu_*_map in arch/
This has been obsolescent for a while; time for the final push. In adjacent context, replaced old cpus_* with cpumask_*. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: David S. Miller <davem@davemloft.net> (arch/sparc) Acked-by: Chris Metcalf <cmetcalf@tilera.com> (arch/tile) Cc: user-mode-linux-devel@lists.sourceforge.net Cc: Russell King <linux@arm.linux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Cc: Richard Kuo <rkuo@codeaurora.org> Cc: linux-hexagon@vger.kernel.org Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: Kyle McMartin <kyle@mcmartin.ca> Cc: Helge Deller <deller@gmx.de> Cc: sparclinux@vger.kernel.org
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r--arch/arm/kernel/smp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 8f8cce2c46c4..9a4bdde909ce 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -354,7 +354,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
354 * re-initialize the map in platform_smp_prepare_cpus() if 354 * re-initialize the map in platform_smp_prepare_cpus() if
355 * present != possible (e.g. physical hotplug). 355 * present != possible (e.g. physical hotplug).
356 */ 356 */
357 init_cpu_present(&cpu_possible_map); 357 init_cpu_present(cpu_possible_mask);
358 358
359 /* 359 /*
360 * Initialise the SCU if there are more than one CPU 360 * Initialise the SCU if there are more than one CPU
@@ -586,8 +586,9 @@ void smp_send_stop(void)
586 unsigned long timeout; 586 unsigned long timeout;
587 587
588 if (num_online_cpus() > 1) { 588 if (num_online_cpus() > 1) {
589 cpumask_t mask = cpu_online_map; 589 struct cpumask mask;
590 cpu_clear(smp_processor_id(), mask); 590 cpumask_copy(&mask, cpu_online_mask);
591 cpumask_clear_cpu(smp_processor_id(), &mask);
591 592
592 smp_cross_call(&mask, IPI_CPU_STOP); 593 smp_cross_call(&mask, IPI_CPU_STOP);
593 } 594 }