Commit f78325c
committed
sched/topology: Remove sched_domain_topology_level::flags
JIRA: https://issues.redhat.com/browse/RHEL-110301
commit 1eec89a
Author: K Prateek Nayak <kprateek.nayak@amd.com>
Date: Fri Jul 11 11:20:30 2025 +0530
sched/topology: Remove sched_domain_topology_level::flags
Support for overlapping domains added in commit e3589f6 ("sched:
Allow for overlapping sched_domain spans") also allowed forcefully
setting SD_OVERLAP for !NUMA domains via FORCE_SD_OVERLAP sched_feat().
Since NUMA domains had to be presumed overlapping to ensure correct
behavior, "sched_domain_topology_level::flags" was introduced. NUMA
domains added the SDTL_OVERLAP flag would ensure SD_OVERLAP was always
added during build_sched_domains() for these domains, even when
FORCE_SD_OVERLAP was off.
Condition for adding the SD_OVERLAP flag at the aforementioned commit
was as follows:
if (tl->flags & SDTL_OVERLAP || sched_feat(FORCE_SD_OVERLAP))
sd->flags |= SD_OVERLAP;
The FORCE_SD_OVERLAP debug feature was removed in commit af85596
("sched/topology: Remove FORCE_SD_OVERLAP") which left the NUMA domains
as the exclusive users of SDTL_OVERLAP, SD_OVERLAP, and SD_NUMA flags.
Get rid of SDTL_OVERLAP and SD_OVERLAP as they have become redundant
and instead rely on SD_NUMA to detect the only overlapping domain
currently supported. Since SDTL_OVERLAP was the only user of
"tl->flags", get rid of "sched_domain_topology_level::flags" too.
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/ba4dbdf8-bc37-493d-b2e0-2efb00ea3e19@amd.com
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent 89d5a14 commit f78325c
File tree
4 files changed
+13
-23
lines changed- include/linux/sched
- kernel/sched
4 files changed
+13
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
| |||
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
190 | | - | |
191 | 188 | | |
192 | 189 | | |
193 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9926 | 9926 | | |
9927 | 9927 | | |
9928 | 9928 | | |
9929 | | - | |
| 9929 | + | |
9930 | 9930 | | |
9931 | | - | |
| 9931 | + | |
9932 | 9932 | | |
9933 | 9933 | | |
9934 | 9934 | | |
| |||
9941 | 9941 | | |
9942 | 9942 | | |
9943 | 9943 | | |
9944 | | - | |
| 9944 | + | |
9945 | 9945 | | |
9946 | 9946 | | |
9947 | 9947 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
| 1362 | + | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
| |||
2031 | 2031 | | |
2032 | 2032 | | |
2033 | 2033 | | |
2034 | | - | |
2035 | 2034 | | |
2036 | 2035 | | |
2037 | 2036 | | |
| |||
2342 | 2341 | | |
2343 | 2342 | | |
2344 | 2343 | | |
2345 | | - | |
| 2344 | + | |
2346 | 2345 | | |
2347 | 2346 | | |
2348 | 2347 | | |
| |||
2408 | 2407 | | |
2409 | 2408 | | |
2410 | 2409 | | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2411 | 2414 | | |
2412 | 2415 | | |
2413 | | - | |
| 2416 | + | |
2414 | 2417 | | |
2415 | 2418 | | |
2416 | 2419 | | |
| |||
2481 | 2484 | | |
2482 | 2485 | | |
2483 | 2486 | | |
2484 | | - | |
2485 | | - | |
2486 | 2487 | | |
2487 | 2488 | | |
2488 | 2489 | | |
| |||
2495 | 2496 | | |
2496 | 2497 | | |
2497 | 2498 | | |
2498 | | - | |
| 2499 | + | |
2499 | 2500 | | |
2500 | 2501 | | |
2501 | 2502 | | |
| |||
0 commit comments