x86/topology: Remove x86_smt_flags and use cpu_smt_flags directly
authorK Prateek Nayak <kprateek.nayak@amd.com>
Mon, 23 Dec 2024 04:34:03 +0000 (04:34 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jan 2025 13:10:24 +0000 (14:10 +0100)
commit537e247879589f6bace747e3479e4abf42dbbbdc
tree2d3512a55484b92dffc2efe006cacb9e2d7ba88f
parentd04013a4b21bd5a4e10c42f71ed1e5e299cacdfe
x86/topology: Remove x86_smt_flags and use cpu_smt_flags directly

x86_*_flags() wrappers were introduced with commit d3d37d850d1d
("x86/sched: Add SD_ASYM_PACKING flags to x86 ITMT CPU") to add
x86_sched_itmt_flags() in addition to the default domain flags for SMT
and MC domain.

commit 995998ebdebd ("x86/sched: Remove SD_ASYM_PACKING from the
SMT domain flags") removed the ITMT flags for SMT domain but not the
x86_smt_flags() wrappers which directly returns cpu_smt_flags().

Remove x86_smt_flags() and directly use cpu_smt_flags() to derive the
flags for SMT domain. No functional changes intended.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20241223043407.1611-5-kprateek.nayak@amd.com
arch/x86/kernel/smpboot.c