Skip to content
Commit 2146b64d authored by James Morse's avatar James Morse
Browse files

drivers: base: Add GENERIC_MEM_NODE for nodes online during boot



NUMA systems are unable to use GENERIC_CPU_DEVICES, as nodes must
be registered before the existing register_cpu() calls can create
node symlinks. The nodes can't be registered before postcore_initcall()
as they depend on the node bus.

arm64, ia64 and x86 all call register_one_node() for each online node.
Add GENERIC_MEM_NODE to do this before GENERIC_CPU_DEVICES needs the
data. Move register_node_type() to happen this early to. This now
matches the time that the cpu bus is created in cpu_dev_init().

This will allow topology_init()s contents to be moved to core code for
arm64, ia64 and x86.

Signed-off-by: James Morse's avatarJames Morse <james.morse@arm.com>
parent c969cb20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment