projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3366e35
)
sh: Flag present CPUs hotpluggable in topology registration.
author
Paul Mundt
<lethal@linux-sh.org>
Mon, 26 Apr 2010 09:20:29 +0000
(18:20 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 26 Apr 2010 09:20:29 +0000
(18:20 +0900)
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>
arch/sh/kernel/topology.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/topology.c
b/arch/sh/kernel/topology.c
index 9b0b633b6c92b29e8ba76c95cc87542633ac54bb..948fdb65693384826b77dbc6024a93bcb88246bd 100644
(file)
--- 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);