]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/cpu/topology: Check for X86_FEATURE_XTOPOLOGY instead of passing has_xtopology
authorK Prateek Nayak <kprateek.nayak@amd.com>
Mon, 1 Sep 2025 17:04:16 +0000 (17:04 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Sep 2025 09:23:40 +0000 (11:23 +0200)
commitd691c5f87f344a448b1a522284fa314e2bb403e2
tree16def89d3fdd51f166061025e6b864a7ba63ee00
parentaf507c6951180ae5e5edb71f56a227ffdcc54f78
x86/cpu/topology: Check for X86_FEATURE_XTOPOLOGY instead of passing has_xtopology

cpu_parse_topology_ext() sets X86_FEATURE_XTOPOLOGY before returning
true if any of the XTOPOLOGY leaf (0x80000026 / 0xb) could be parsed
successfully.

Instead of storing and passing around this return value using
"has_xtopology" in parse_topology_amd(), check for X86_FEATURE_XTOPOLOGY
directly in parse_8000_001e() to simplify the flow.

No functional changes intended.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/20250901170418.4314-1-kprateek.nayak@amd.com
arch/x86/kernel/cpu/topology_amd.c