[PATCH v4 2/4] x86/smpboot: remove redundant CONFIG_SCHED_SMT

From: Li Chen
Date: Sat Jul 05 2025 - 23:09:36 EST


From: Li Chen <chenl311@xxxxxxxxxxxxxxx>

CONFIG_SCHED_SMT is default y if SMP is enabled,
so let's simply drop CONFIG_SCHED_SMT.

Signed-off-by: Li Chen <chenl311@xxxxxxxxxxxxxxx>
Suggested-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
arch/x86/kernel/smpboot.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 55f09946c791b..6e36306632792 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -484,9 +484,7 @@ static void __init build_sched_topology(void)
{
int i = 0;

-#ifdef CONFIG_SCHED_SMT
x86_topology[i++] = SDTL(cpu_smt_mask, cpu_smt_flags, SMT);
-#endif
#ifdef CONFIG_SCHED_CLUSTER
x86_topology[i++] = SDTL(cpu_clustergroup_mask, x86_cluster_flags, CLS);
#endif
--
2.49.0