Skip to content

Commit

Permalink
[S390] Fix cpu hotplug (missing 'online' attribute).
Browse files Browse the repository at this point in the history
72486f1 inverts the logic if an
'online' attribute in /sys/devices/system/cpu/cpuX should appear.
So we end up with no hotpluggable cpus at all...
Set the hotpluggable value to one to make sure the online
attribute appears again.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jan 9, 2007
1 parent 6faf444 commit 6721f77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/s390/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,10 @@ static int __init topology_init(void)
int ret;

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

c->hotpluggable = 1;
ret = register_cpu(c, cpu);
if (ret)
printk(KERN_WARNING "topology_init: register_cpu %d "
"failed (%d)\n", cpu, ret);
Expand Down

0 comments on commit 6721f77

Please sign in to comment.