提交 66fb8bd2 编写于 作者: R Russell King 提交者: Russell King

[ARM] Fix breakage caused by 72486f1f

72486f1f inverted the sense for
enabling hotplug CPU controls without reference to any other
architecture other than i386, ia64 and PowerPC.  This left
everyone else without hotplug CPU control.

Fix ARM for this brain damage.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 8b9909de
......@@ -839,8 +839,11 @@ static int __init topology_init(void)
{
int cpu;
for_each_possible_cpu(cpu)
register_cpu(&per_cpu(cpu_data, cpu).cpu, cpu);
for_each_possible_cpu(cpu) {
struct cpuinfo_arm *cpuinfo = &per_cpu(cpu_data, cpu);
cpuinfo->cpu.hotpluggable = 1;
register_cpu(&cpuinfo->cpu, cpu);
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册