]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/smpboot: remove redundant CONFIG_SCHED_SMT
authorLi Chen <chenl311@chinatelecom.cn>
Thu, 10 Jul 2025 10:57:08 +0000 (18:57 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Jul 2025 08:59:34 +0000 (10:59 +0200)
On x86 CONFIG_SCHED_SMT is default y if SMP is enabled, so let's
simply drop CONFIG_SCHED_SMT.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20250710105715.66594-3-me@linux.beauty
arch/x86/kernel/smpboot.c

index e0adf75f617a990c2931919d88a020e247a199e4..30e6df2b4db6dea041b05fc99c8fc319ce713873 100644 (file)
@@ -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