aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
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 }