Skip to content

Commit e222e2c

Browse files
committed
x86/smpboot: remove redundant CONFIG_SCHED_SMT
JIRA: https://issues.redhat.com/browse/RHEL-118964 commit 992de2b Author: Li Chen <chenl311@chinatelecom.cn> Date: Thu Jul 10 18:57:08 2025 +0800 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 <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 Signed-off-by: Phil Auld <pauld@redhat.com>
1 parent 73b4e28 commit e222e2c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/kernel/smpboot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,7 @@ static void __init build_sched_topology(void)
510510
{
511511
int i = 0;
512512

513-
#ifdef CONFIG_SCHED_SMT
514513
x86_topology[i++] = SDTL_INIT(cpu_smt_mask, cpu_smt_flags, SMT);
515-
#endif
516514
#ifdef CONFIG_SCHED_CLUSTER
517515
x86_topology[i++] = SDTL_INIT(cpu_clustergroup_mask, x86_cluster_flags, CLS);
518516
#endif

0 commit comments

Comments
 (0)