x86/cpu/topology: Use a data structure for topology info
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:05:49 +0000 (22:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:43 +0000 (22:07 +0100)
commit72530464ed609bcdd49a760e9d0bc3b16717ff2b
tree8b205b0b627a35b5a75294f8045928df4c865785
parent4c4c6f38704ab0e3f85f660b7479de7aa559d79a
x86/cpu/topology: Use a data structure for topology info

Put the processor accounting into a data structure, which will gain more
topology related information in the next steps, and sanitize the accounting.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20240213210252.111451909@linutronix.de
arch/x86/kernel/cpu/topology.c