提交 f0ccf277 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 c9f4a3f5
......@@ -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();
......
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册