summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/topology.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-04-26 11:20:29 +0200
committerPaul Mundt <lethal@linux-sh.org>2010-04-26 11:20:29 +0200
commit9e8c5be8b76b188ec5bc95b378cf67aaeba1f695 (patch)
tree3682bc41ea8103c8d93fe983a6cd1a03ba2e3580 /arch/sh/kernel/topology.c
parentsh: Move platform smp ops in to their own structure. (diff)
downloadlinux-9e8c5be8b76b188ec5bc95b378cf67aaeba1f695.tar.xz
linux-9e8c5be8b76b188ec5bc95b378cf67aaeba1f695.zip
sh: Flag present CPUs hotpluggable in topology registration.
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>
Diffstat (limited to 'arch/sh/kernel/topology.c')
-rw-r--r--arch/sh/kernel/topology.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/kernel/topology.c b/arch/sh/kernel/topology.c
index 9b0b633b6c92..948fdb656933 100644
--- a/arch/sh/kernel/topology.c
+++ b/arch/sh/kernel/topology.c
@@ -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);