sh: convert online CPU map twiddling to cpumask.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 26 Apr 2010 09:39:50 +0000 (18:39 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 26 Apr 2010 09:39:50 +0000 (18:39 +0900)
This converts from cpu_set() for the online map to set_cpu_online().
The two online map modifiers were the last remaining manual map
manipulation bits, with this in place everything now goes through
cpumask.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/idle.c
arch/sh/kernel/smp.c

index 273f890b17ae3eb0fd643473e3a62b775cb8f51a..204005329fe12ce2aaa18bf90523446290d5f489 100644 (file)
@@ -133,7 +133,7 @@ static void do_nothing(void *unused)
 void stop_this_cpu(void *unused)
 {
        local_irq_disable();
-       cpu_clear(smp_processor_id(), cpu_online_map);
+       set_cpu_online(smp_processor_id(), false);
 
        for (;;)
                cpu_sleep();
index 2f348fda0159cc9dadf5b53157b14b148c486b5e..cc87830ace7f75c077ee58dea9c1b0ea4f28c02f 100644 (file)
@@ -102,7 +102,7 @@ asmlinkage void __cpuinit start_secondary(void)
 
        smp_store_cpu_info(cpu);
 
-       cpu_set(cpu, cpu_online_map);
+       set_cpu_online(cpu, true);
 
        cpu_idle();
 }