diff options
author | Valentin Schneider <valentin.schneider@arm.com> | 2020-08-17 14:30:01 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-19 11:49:50 +0300 |
commit | 3551e954f5d95faf3dbc340d422da7624658c230 (patch) | |
tree | 4291b5f702d349e9bd63d6fd4dafb1db9a3f4434 /include/linux/sched | |
parent | 33199b0143daf4778d6301f966cb914d75f122eb (diff) | |
download | linux-3551e954f5d95faf3dbc340d422da7624658c230.tar.xz |
sched/topology: Mark SD_OVERLAP as SDF_NEEDS_GROUPS
A sched_domain can only have overlapping sched_groups if it has more than
one group.
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20200817113003.20802-16-valentin.schneider@arm.com
Diffstat (limited to 'include/linux/sched')
-rw-r--r-- | include/linux/sched/sd_flags.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched/sd_flags.h b/include/linux/sched/sd_flags.h index 2998ece2c18d..29af5f032861 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -143,8 +143,9 @@ SD_FLAG(SD_PREFER_SIBLING, SDF_NEEDS_GROUPS) * sched_groups of this level overlap * * SHARED_PARENT: Set for all NUMA levels above NODE. + * NEEDS_GROUPS: Overlaps can only exist with more than one group. */ -SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT) +SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) /* * Cross-node balancing |