[RFC PATCH 05/32] drivers: base: Move cpu_dev_init() after node_dev_init()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: linux-pm@xxxxxxxxxxxxxxx, loongarch@xxxxxxxxxxxxxxx, kvmarm@xxxxxxxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, linux-arch@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, x86@xxxxxxxxxx
- Subject: [RFC PATCH 05/32] drivers: base: Move cpu_dev_init() after node_dev_init()
- From: James Morse <james.morse@xxxxxxx>
- Date: Fri, 3 Feb 2023 13:50:16 +0000
- Cc: Marc Zyngier <maz@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Sudeep Holla <sudeep.holla@xxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, H Peter Anvin <hpa@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Huacai Chen <chenhuacai@xxxxxxxxxx>, James Morse <james.morse@xxxxxxx>, Suzuki K Poulose <suzuki.poulose@xxxxxxx>, Oliver Upton <oliver.upton@xxxxxxxxx>, Len Brown <lenb@xxxxxxxxxx>, Rafael Wysocki <rafael@xxxxxxxxxx>, WANG Xuerui <kernel@xxxxxxxxxx>, Salil Mehta <salil.mehta@xxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
- In-reply-to: <20230203135043.409192-1-james.morse@arm.com>
- References: <20230203135043.409192-1-james.morse@arm.com>
NUMA systems require the node descriptions to be ready before CPUs are
registered. This is so that the node symlinks can be created in sysfs.
Currently none of these platforms use GENERIC_CPU_DEVICES, meaning
that CPUs aren't registered by cpu_dev_init().
Move cpu_dev_init() after node_dev_init() so that NUMA architectures
can use GENERIC_CPU_DEVICES.
Signed-off-by: James Morse <james.morse@xxxxxxx>
---
drivers/base/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/init.c b/drivers/base/init.c
index 397eb9880cec..c4954835128c 100644
--- a/drivers/base/init.c
+++ b/drivers/base/init.c
@@ -35,8 +35,8 @@ void __init driver_init(void)
of_core_init();
platform_bus_init();
auxiliary_bus_init();
- cpu_dev_init();
memory_dev_init();
node_dev_init();
+ cpu_dev_init();
container_dev_init();
}
--
2.30.2
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]