Skip to content

Commit af85596

Browse files
Peter Zijlstraingomolnar
authored andcommitted
sched/topology: Remove FORCE_SD_OVERLAP
Its an obsolete debug mechanism and future code wants to rely on properties this undermines. Namely, it would be good to assume that SD_OVERLAP domains have children, but if we build the entire hierarchy with SD_OVERLAP this is obviously false. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent c20e1ea commit af85596

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎kernel/sched/features.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ SCHED_FEAT(WARN_DOUBLE_CLOCK, false)
7676
SCHED_FEAT(RT_PUSH_IPI, true)
7777
#endif
7878

79-
SCHED_FEAT(FORCE_SD_OVERLAP, false)
8079
SCHED_FEAT(RT_RUNTIME_SHARE, true)
8180
SCHED_FEAT(LB_MIN, false)
8281
SCHED_FEAT(ATTACH_AGE_LOAD, true)

‎kernel/sched/topology.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ build_sched_domains(const struct cpumask *cpu_map, struct sched_domain_attr *att
14391439
sd = build_sched_domain(tl, cpu_map, attr, sd, i);
14401440
if (tl == sched_domain_topology)
14411441
*per_cpu_ptr(d.sd, i) = sd;
1442-
if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))
1442+
if (tl->flags & SDTL_OVERLAP)
14431443
sd->flags |= SD_OVERLAP;
14441444
if (cpumask_equal(cpu_map, sched_domain_span(sd)))
14451445
break;

0 commit comments

Comments
 (0)