diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-07-31 11:19:18 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-08-20 12:18:50 +0200 |
commit | f7f8b433ac60057c002efda102c5529f74997acf (patch) | |
tree | c87ba93ef0cfd85fe70f5f2d9d21a72958c31653 /arch/arm/kernel/setup.c | |
parent | ARM: 9411/1: Switch over to GENERIC_CPU_DEVICES using arch_register_cpu() (diff) | |
download | linux-f7f8b433ac60057c002efda102c5529f74997acf.tar.xz linux-f7f8b433ac60057c002efda102c5529f74997acf.zip |
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>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r-- | arch/arm/kernel/setup.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index f91e2b5b8b20..e6a857bf0ce6 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -1201,12 +1201,9 @@ void __init setup_arch(char **cmdline_p) 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 |