aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview
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 /arch/arm/mach-realview
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>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r--arch/arm/mach-realview/platsmp.c4
1 files changed, 2 insertions, 2 deletions
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