x86/topology: Switch over to GENERIC_CPU_DEVICES and GENERIC_MEM_NODE
Now that GENERIC_CPU_DEVICES calls arch_register_cpu(), which can be
overridden by the arch code, switch over to this to allow common code
to choose when the register_cpu() call is made.
x86's struct cpus come from struct x86_cpu, which has no other members
or users. Remove this and use the version defined by common code.
The memory node register work needs to happen before GENERIC_CPU_DEVICES,
enable GENERIC_MEM_NODE too.
This is an intermediate step to the logic being moved to drivers/acpi,
where GENERIC_CPU_DEVICES will do the work when booting with acpi=off.
Signed-off-by:
James Morse <james.morse@arm.com>
Loading
Please register or sign in to comment