Commit f7f8b433 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Russell King (Oracle)

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: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
parent 609face0
...@@ -1201,12 +1201,9 @@ void __init setup_arch(char **cmdline_p) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment