diff options
author | Valentin Schneider <valentin.schneider@arm.com> | 2020-08-17 12:30:02 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-19 10:49:50 +0200 |
commit | 5f4a1c4ea44728aa80be21dbf3a0469b5ca81d88 (patch) | |
tree | 567e540e49b555919e07e535fe8f5cdfa59ccfa5 /include | |
parent | 3551e954f5d95faf3dbc340d422da7624658c230 (diff) | |
download | linux-5f4a1c4ea44728aa80be21dbf3a0469b5ca81d88.tar.bz2 |
sched/topology: Mark SD_NUMA as SDF_NEEDS_GROUPS
There would be no point in preserving a sched_domain with a single group
just because it has this flag set. Add it to SD_DEGENERATE_GROUPS_MASK.
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-17-valentin.schneider@arm.com
Diffstat (limited to 'include')
-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 29af5f032861..34b21e971d77 100644 --- a/include/linux/sched/sd_flags.h +++ b/include/linux/sched/sd_flags.h @@ -151,5 +151,6 @@ SD_FLAG(SD_OVERLAP, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) * Cross-node balancing * * SHARED_PARENT: Set for all NUMA levels above NODE. + * NEEDS_GROUPS: No point in preserving domain if it has a single group. */ -SD_FLAG(SD_NUMA, SDF_SHARED_PARENT) +SD_FLAG(SD_NUMA, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS) |