cpumask: Use accessors code.: arm
From: Rusty Russell <rusty@rustcorp.com.au>

Use the accessors rather than frobbing bits directly.  Most of this is
in arch code I haven't even compiled, but it is mostly straightforward.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
---
 arch/arm/kernel/smp.c            |    6 +++---
 arch/arm/mach-realview/platsmp.c |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff -r 07ebea6b5b50 arch/arm/kernel/smp.c
--- a/arch/arm/kernel/smp.c	Fri Oct 31 11:22:33 2008 +1100
+++ b/arch/arm/kernel/smp.c	Fri Oct 31 11:23:04 2008 +1100
@@ -161,7 +161,7 @@ int __cpuexit __cpu_disable(void)
 	 * Take this CPU offline.  Once we clear this, we can't return,
 	 * and we must not schedule until we're ready to give up the cpu.
 	 */
-	cpu_clear(cpu, cpu_online_map);
+	set_cpu_online(cpu, false);
 
 	/*
 	 * OK - migrate IRQs away from this CPU
@@ -283,7 +283,7 @@ asmlinkage void __cpuinit secondary_star
 	/*
 	 * OK, now it's safe to let the boot CPU continue
 	 */
-	cpu_set(cpu, cpu_online_map);
+	set_cpu_online(cpu, true);
 
 	/*
 	 * OK, it's off to the idle thread for us
@@ -415,7 +415,7 @@ static void ipi_cpu_stop(unsigned int cp
 	dump_stack();
 	spin_unlock(&stop_lock);
 
-	cpu_clear(cpu, cpu_online_map);
+	set_cpu_online(cpu, false);
 
 	local_fiq_disable();
 	local_irq_disable();
diff -r 07ebea6b5b50 arch/arm/mach-realview/platsmp.c
--- a/arch/arm/mach-realview/platsmp.c	Fri Oct 31 11:22:33 2008 +1100
+++ b/arch/arm/mach-realview/platsmp.c	Fri Oct 31 11:23:04 2008 +1100
@@ -193,7 +193,7 @@ void __init smp_init_cpus(void)
 	unsigned int i, ncores = get_core_count();
 
 	for (i = 0; i < ncores; i++)
-		cpu_set(i, cpu_possible_map);
+		set_cpu_possible(i, true);
 }
 
 void __init smp_prepare_cpus(unsigned int max_cpus)
@@ -242,7 +242,7 @@ void __init smp_prepare_cpus(unsigned in
 	 * actually populated at the present time.
 	 */
 	for (i = 0; i < max_cpus; i++)
-		cpu_set(i, cpu_present_map);
+		set_cpu_present(i, true);
 
 	/*
 	 * Initialise the SCU if there are more than one CPU and let
