MIPS: CPU#0 is not hotpluggable
Subsystems (2)
PATCH 1/1 MIPS: CPU#0 is not hotpluggable
Now CPU#0 is not hotpluggable on MIPS, so prevent to create /sys/devices /system/cpu/cpu0/online which confusing some user-space tools.
Signed-off-by Huacai Chen <[email protected]>
--- arch/mips/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/kernel/topology.c +1 -1
@@ -20,7 +20,7 @@ static int __init topology_init(void)for_each_present_cpu (i) {struct cpu *c = &per_cpu (cpu_devices, i); - c->hotpluggable =1 ; + c->hotpluggable = !!i; ret =register_cpu (c, i);if (ret) printk(KERN_WARNING "topology_init: register_cpu %d "
Signature · 1 line
2.7.0
Hello!
Quoted 2 lines · Huacai Chen
Now CPU#0 is not hotpluggable on MIPS, so prevent to create
/sys/devices/system/cpu/cpu0/online which confusing some user-space tools.
Confuses?
Quoted 2 lines
Signed-off-by Huacai Chen <[email protected]>
[...]
MBR, Sergei
Hi, Sergei,
Quoted 9 lines · Sergei Shtylyov
Hello!
Quoted 2 lines · Huacai Chen
Now CPU#0 is not hotpluggable on MIPS, so prevent to create
/sys/devices/system/cpu/cpu0/online which confusing some user-space tools.Confuses?
Yes, this is my fault.
Quoted 6 lines
Quoted 3 lines
Signed-off-by Huacai Chen <[email protected]>[...]
MBR, Sergei