]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: 9411/1: Switch over to GENERIC_CPU_DEVICES using arch_register_cpu()
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 31 Jul 2024 09:17:55 +0000 (10:17 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 20 Aug 2024 10:18:49 +0000 (11:18 +0100)
commit609face018110c5f9bdde24d3155dbda38745622
tree282f17cb67aa36a5e3238bf0647073a17f791444
parent89a906dfa8c3b21b3e5360f73c49234ac1eb885b
ARM: 9411/1: Switch over to GENERIC_CPU_DEVICES using arch_register_cpu()

Currently, almost all architectures have switched to GENERIC_CPU_DEVICES,
except for arm32. Also switch over to GENERIC_CPU_DEVICES, and provide an
arch_register_cpu() that populates the hotpluggable flag for arm32.

The struct cpu in struct cpuinfo_arm is never used directly, remove
it to use the one GENERIC_CPU_DEVICES provides.

This also has the effect of moving the registration of CPUs from subsys to
driver core initialisation, prior to any initcalls running.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/cpu.h
arch/arm/kernel/setup.c