Skip to content

Commit

Permalink
sh: Flag present CPUs hotpluggable in topology registration.
Browse files Browse the repository at this point in the history
When registering CPUs in the topology initialization ensure that all of
the present CPUs are flagged as hotpluggable.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Apr 26, 2010
1 parent 3366e35 commit 9e8c5be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/sh/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ static int __init topology_init(void)
#endif

for_each_present_cpu(i) {
ret = register_cpu(&per_cpu(cpu_devices, i), i);
struct cpu *c = &per_cpu(cpu_devices, i);

c->hotpluggable = 1;

ret = register_cpu(c, i);
if (unlikely(ret))
printk(KERN_WARNING "%s: register_cpu %d failed (%d)\n",
__func__, i, ret);
Expand Down

0 comments on commit 9e8c5be

Please sign in to comment.