x86/cpu/topology: Get rid of cpuinfo::x86_max_cores
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:06:16 +0000 (22:06 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 Feb 2024 14:51:32 +0000 (15:51 +0100)
commit89b0f15f408f7c4ee98c1ec4c3224852fcbc3274
treec1260ecb1ae8fb3bdc36ff6bdf6ad1b294abf684
parentfd43b8ae76e903c76f14d06eb939449bcc3f614f
x86/cpu/topology: Get rid of cpuinfo::x86_max_cores

Now that __num_cores_per_package and __num_threads_per_package are
available, cpuinfo::x86_max_cores and the related math all over the place
can be replaced with the ready to consume data.

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/20240213210253.176147806@linutronix.de
14 files changed:
Documentation/arch/x86/topology.rst
arch/x86/events/intel/uncore_nhmex.c
arch/x86/events/intel/uncore_snb.c
arch/x86/events/intel/uncore_snbep.c
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/cacheinfo.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/debugfs.c
arch/x86/kernel/cpu/mce/inject.c
arch/x86/kernel/cpu/microcode/intel.c
arch/x86/kernel/cpu/topology_common.c
arch/x86/kernel/smpboot.c
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
drivers/hwmon/fam15h_power.c