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

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
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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