Skip to content

Commit

Permalink
sh: convert online CPU map twiddling to cpumask.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Apr 26, 2010
1 parent c9f4a3f commit f0ccf27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f0ccf27

Please sign in to comment.