aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-04-26 05:39:50 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-04-26 05:39:50 -0400
commitf0ccf2770f523bd4fc436886a38e499f9ec95c0e (patch)
tree61a1ca3ba00b4908e43b7aa4ced9b827e96a067d /arch/sh
parentc9f4a3f53b5d61f86eae3512abdf948878ca3498 (diff)
sh: convert online CPU map twiddling to cpumask.
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/idle.c2
-rw-r--r--arch/sh/kernel/smp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/idle.c b/arch/sh/kernel/idle.c
index 273f890b17ae..204005329fe1 100644
--- a/arch/sh/kernel/idle.c
+++ b/arch/sh/kernel/idle.c
@@ -133,7 +133,7 @@ static void do_nothing(void *unused)
133void stop_this_cpu(void *unused) 133void stop_this_cpu(void *unused)
134{ 134{
135 local_irq_disable(); 135 local_irq_disable();
136 cpu_clear(smp_processor_id(), cpu_online_map); 136 set_cpu_online(smp_processor_id(), false);
137 137
138 for (;;) 138 for (;;)
139 cpu_sleep(); 139 cpu_sleep();
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index 2f348fda0159..cc87830ace7f 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -102,7 +102,7 @@ asmlinkage void __cpuinit start_secondary(void)
102 102
103 smp_store_cpu_info(cpu); 103 smp_store_cpu_info(cpu);
104 104
105 cpu_set(cpu, cpu_online_map); 105 set_cpu_online(cpu, true);
106 106
107 cpu_idle(); 107 cpu_idle();
108} 108}