x86/cpu: Use common topology code for Centaur and Zhaoxin
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:04:04 +0000 (22:04 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:37 +0000 (22:07 +0100)
commit598e719c40d67b1473d78423e941bed4ea6c726d
treedeef1ceb0f8a8417250fd72fd210f0706f757a90
parentbda74aae20086c044b31ca0dcdab7deaaf23d0e8
x86/cpu: Use common topology code for Centaur and Zhaoxin

Centaur and Zhaoxin CPUs use only the legacy SMP detection. Remove the
invocations from their 32bit path and exclude them from the 64-bit call
path.

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/20240212153624.706794189@linutronix.de
arch/x86/kernel/cpu/centaur.c
arch/x86/kernel/cpu/topology_common.c
arch/x86/kernel/cpu/zhaoxin.c