Skip to content

Commit 992de2b

Browse files
FirstLoveLifePeter Zijlstra
authored andcommitted
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 <[email protected]> Signed-off-by: Li Chen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: K Prateek Nayak <[email protected]> Tested-by: K Prateek Nayak <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e075f43 commit 992de2b

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
@@ -484,9 +484,7 @@ static void __init build_sched_topology(void)
484484
{
485485
int i = 0;
486486

487-
#ifdef CONFIG_SCHED_SMT
488487
x86_topology[i++] = SDTL_INIT(cpu_smt_mask, cpu_smt_flags, SMT);
489-
#endif
490488
#ifdef CONFIG_SCHED_CLUSTER
491489
x86_topology[i++] = SDTL_INIT(cpu_clustergroup_mask, x86_cluster_flags, CLS);
492490
#endif

0 commit comments

Comments
 (0)