From: Li Chen Date: Thu, 10 Jul 2025 10:57:08 +0000 (+0800) Subject: x86/smpboot: remove redundant CONFIG_SCHED_SMT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=992de2b02509bed68f693ea5a68b07cd586197b7;p=thirdparty%2Fkernel%2Fstable.git x86/smpboot: remove redundant CONFIG_SCHED_SMT On x86 CONFIG_SCHED_SMT is default y if SMP is enabled, so let's simply drop CONFIG_SCHED_SMT. Suggested-by: Thomas Gleixner Signed-off-by: Li Chen Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: K Prateek Nayak Tested-by: K Prateek Nayak Link: https://lore.kernel.org/r/20250710105715.66594-3-me@linux.beauty --- diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index e0adf75f617a..30e6df2b4db6 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_INIT(cpu_smt_mask, cpu_smt_flags, SMT); -#endif #ifdef CONFIG_SCHED_CLUSTER x86_topology[i++] = SDTL_INIT(cpu_clustergroup_mask, x86_cluster_flags, CLS); #endif