[PATCH 2/2] ARM: 9322/1: Convert to arch_cpu_is_hotpluggable()
Jinjie Ruan
ruanjinjie at huawei.com
Mon Jul 1 23:59:06 PDT 2024
Convert arm32 to use the arch_cpu_is_hotpluggable() helper rather than
arch_register_cpu().
Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>
---
arch/arm/kernel/setup.c | 7 ++-----
1 file 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
--
2.34.1
More information about the linux-arm-kernel
mailing list