提交 bdb7c802 编写于 作者: V Valentin Schneider 提交者: Ingo Molnar

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: NValentin Schneider <valentin.schneider@arm.com>
Signed-off-by: NIngo Molnar <mingo@kernel.org>
Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20200817113003.20802-14-valentin.schneider@arm.com
上级 94b858fe
...@@ -112,11 +112,12 @@ SD_FLAG(SD_SHARE_PKG_RESOURCES, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS) ...@@ -112,11 +112,12 @@ SD_FLAG(SD_SHARE_PKG_RESOURCES, SDF_SHARED_CHILD | SDF_NEEDS_GROUPS)
* Only a single load balancing instance * Only a single load balancing instance
* *
* SHARED_PARENT: Set for all NUMA levels above NODE. Could be set from a * 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 * different level upwards, but it doesn't change that if a
* set, then all of its parents need to have it too (otherwise the serialization * domain has this flag set, then all of its parents need to have
* doesn't make sense). * 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 * Place busy tasks earlier in the domain
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册