summaryrefslogtreecommitdiff
path: root/include/linux/sched/sd_flags.h
diff options
context:
space:
mode:
authorValentin Schneider <valentin.schneider@arm.com>2020-08-17 12:29:59 +0100
committerIngo Molnar <mingo@kernel.org>2020-08-19 10:49:49 +0200
commitbdb7c802cc0a7e21f5223dc3ce41b7ac220c576e (patch)
treea906c4074069218fe76e078c0ed28c0120ae0c50 /include/linux/sched/sd_flags.h
parent94b858fea1f2246a2fb7f7af21840fd14ced028f (diff)
sched/topology: Mark SD_SERIALIZE 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-14-valentin.schneider@arm.com
Diffstat (limited to 'include/linux/sched/sd_flags.h')
-rw-r--r--include/linux/sched/sd_flags.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/sched/sd_flags.h b/include/linux/sched/sd_flags.h
index 729510a291b2..b7f4d80e338e 100644
--- a/include/linux/sched/sd_flags.h
+++ b/include/linux/sched/sd_flags.h
@@ -112,11 +112,12 @@ SD_FLAG(SD_SHARE_PKG_RESOURCES, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS)
* Only a single load balancing instance
*
* SHARED_PARENT: Set for all NUMA levels above NODE. Could be set from a
- * different level upwards, but it doesn't change that if a domain has this flag
- * set, then all of its parents need to have it too (otherwise the serialization
- * doesn't make sense).
+ * different level upwards, but it doesn't change that if a
+ * domain has this flag set, then all of its parents need to have
+ * it too (otherwise the serialization doesn't make sense).
+ * NEEDS_GROUPS: No point in preserving domain if it has a single group.
*/
-SD_FLAG(SD_SERIALIZE, SDF_SHARED_PARENT)
+SD_FLAG(SD_SERIALIZE, SDF_SHARED_PARENT | SDF_NEEDS_GROUPS)
/*
* Place busy tasks earlier in the domain