x86/cpu/topology: Provide __num_[cores|threads]_per_package
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Feb 2024 21:06:14 +0000 (22:06 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Feb 2024 21:07:45 +0000 (22:07 +0100)
commitfd43b8ae76e903c76f14d06eb939449bcc3f614f
tree512c9bfce5133df3cc07fb4a77cdfd012e0ee93a
parentbd745d1c41e7fa56242889eb5dc6df2d7dd5df32
x86/cpu/topology: Provide __num_[cores|threads]_per_package

Expose properly accounted information and accessors so the fiddling with
other topology variables can be replaced.

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.120958987@linutronix.de
arch/x86/include/asm/topology.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/topology.c