Skip to content

Commit f7f8b43

Browse files
Jinjie RuanRussell King (Oracle)
authored andcommitted
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 <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 609face commit f7f8b43

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

arch/arm/kernel/setup.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,12 +1201,9 @@ void __init setup_arch(char **cmdline_p)
12011201
mdesc->init_early();
12021202
}
12031203

1204-
int arch_register_cpu(int num)
1204+
bool arch_cpu_is_hotpluggable(int num)
12051205
{
1206-
struct cpu *cpu = &per_cpu(cpu_devices, num);
1207-
1208-
cpu->hotpluggable = platform_can_hotplug_cpu(num);
1209-
return register_cpu(cpu, num);
1206+
return platform_can_hotplug_cpu(num);
12101207
}
12111208

12121209
#ifdef CONFIG_HAVE_PROC_CPU

0 commit comments

Comments
 (0)