ARM: 9412/1: Convert to arch_cpu_is_hotpluggable()
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>
This commit is contained in:
parent
609face018
commit
f7f8b433ac
@ -1201,12 +1201,9 @@ void __init setup_arch(char **cmdline_p)
|
|||||||
mdesc->init_early();
|
mdesc->init_early();
|
||||||
}
|
}
|
||||||
|
|
||||||
int arch_register_cpu(int num)
|
bool arch_cpu_is_hotpluggable(int num)
|
||||||
{
|
{
|
||||||
struct cpu *cpu = &per_cpu(cpu_devices, num);
|
return platform_can_hotplug_cpu(num);
|
||||||
|
|
||||||
cpu->hotpluggable = platform_can_hotplug_cpu(num);
|
|
||||||
return register_cpu(cpu, num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_PROC_CPU
|
#ifdef CONFIG_HAVE_PROC_CPU
|
||||||
|
Loading…
Reference in New Issue
Block a user