Convert arm32 to use the arch_cpu_is_hotpluggable() helper rather than
arch_register_cpu().
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
mdesc->init_early();
}
-int arch_register_cpu(int num)
+bool arch_cpu_is_hotpluggable(int num)
{
- struct cpu *cpu = &per_cpu(cpu_devices, num);
-
- cpu->hotpluggable = platform_can_hotplug_cpu(num);
- return register_cpu(cpu, num);
+ return platform_can_hotplug_cpu(num);
}
#ifdef CONFIG_HAVE_PROC_CPU