summaryrefslogtreecommitdiff
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2024-07-31 10:19:18 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-08-20 11:18:50 +0100
commitf7f8b433ac60057c002efda102c5529f74997acf (patch)
treec87ba93ef0cfd85fe70f5f2d9d21a72958c31653 /arch/arm/kernel
parent609face018110c5f9bdde24d3155dbda38745622 (diff)
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')
-rw-r--r--arch/arm/kernel/setup.c7
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