aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-05-28 09:16:52 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-28 09:16:52 -0400
commite03cdade0ca945a04e982525e50fef275190b77b (patch)
tree0e3fa1069018bff6f332abd06d969cf2a89ff5d0
parentaf73110d23fb54f940197d93a410e9fa0cee66e2 (diff)
[ARM] smp: use new cpumask functions
Convert cpu_*_mask bit twiddling to the new set_cpu_*() API. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/include/asm/smp.h2
-rw-r--r--arch/arm/kernel/smp.c6
-rw-r--r--arch/arm/mach-realview/platsmp.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h
index 608f2d533ff2..a06e735b262a 100644
--- a/arch/arm/include/asm/smp.h
+++ b/arch/arm/include/asm/smp.h
@@ -41,7 +41,7 @@ extern void show_ipi_list(struct seq_file *p);
41asmlinkage void do_IPI(struct pt_regs *regs); 41asmlinkage void do_IPI(struct pt_regs *regs);
42 42
43/* 43/*
44 * Setup the SMP cpu_possible_map 44 * Setup the set of possible CPUs (via set_cpu_possible)
45 */ 45 */
46extern void smp_init_cpus(void); 46extern void smp_init_cpus(void);
47 47
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 91130e218aef..0d8097fa4ca5 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -166,7 +166,7 @@ int __cpuexit __cpu_disable(void)
166 * Take this CPU offline. Once we clear this, we can't return, 166 * Take this CPU offline. Once we clear this, we can't return,
167 * and we must not schedule until we're ready to give up the cpu. 167 * and we must not schedule until we're ready to give up the cpu.
168 */ 168 */
169 cpu_clear(cpu, cpu_online_map); 169 set_cpu_online(cpu, false);
170 170
171 /* 171 /*
172 * OK - migrate IRQs away from this CPU 172 * OK - migrate IRQs away from this CPU
@@ -288,7 +288,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
288 /* 288 /*
289 * OK, now it's safe to let the boot CPU continue 289 * OK, now it's safe to let the boot CPU continue
290 */ 290 */
291 cpu_set(cpu, cpu_online_map); 291 set_cpu_online(cpu, true);
292 292
293 /* 293 /*
294 * OK, it's off to the idle thread for us 294 * OK, it's off to the idle thread for us
@@ -462,7 +462,7 @@ static void ipi_cpu_stop(unsigned int cpu)
462 dump_stack(); 462 dump_stack();
463 spin_unlock(&stop_lock); 463 spin_unlock(&stop_lock);
464 464
465 cpu_clear(cpu, cpu_online_map); 465 set_cpu_online(cpu, false);
466 466
467 local_fiq_disable(); 467 local_fiq_disable();
468 local_irq_disable(); 468 local_irq_disable();
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c
index c862ce19587e..ca742172ea78 100644
--- a/arch/arm/mach-realview/platsmp.c
+++ b/arch/arm/mach-realview/platsmp.c
@@ -166,7 +166,7 @@ void __init smp_init_cpus(void)
166 unsigned int i, ncores = get_core_count(); 166 unsigned int i, ncores = get_core_count();
167 167
168 for (i = 0; i < ncores; i++) 168 for (i = 0; i < ncores; i++)
169 cpu_set(i, cpu_possible_map); 169 set_cpu_possible(i, true);
170} 170}
171 171
172void __init smp_prepare_cpus(unsigned int max_cpus) 172void __init smp_prepare_cpus(unsigned int max_cpus)
@@ -204,7 +204,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
204 * actually populated at the present time. 204 * actually populated at the present time.
205 */ 205 */
206 for (i = 0; i < max_cpus; i++) 206 for (i = 0; i < max_cpus; i++)
207 cpu_set(i, cpu_present_map); 207 set_cpu_present(i, true);
208 208
209 /* 209 /*
210 * Initialise the SCU if there are more than one CPU and let 210 * Initialise the SCU if there are more than one CPU and let