x86/cpu: Use common topology code for AMD
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:04:14 +0000 (22:04 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:38 +0000 (22:07 +0100)
commitc749ce393b8fe9db5ed894411f06eafa88f0e13a
tree5f6555b444ae28205bc2b5f3a7ef61bdbe477dd7
parentace278e7eca6be5d36eb6f1efb660c13b66c4d64
x86/cpu: Use common topology code for AMD

Switch it over to the new topology evaluation mechanism and remove the
random bits and pieces which are sprinkled all over the place.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Wang Wendy <wendy.wang@intel.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20240212153625.145745053@linutronix.de
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/mce/inject.c
arch/x86/kernel/cpu/topology_common.c