diff options
| author | Waiman Long <longman@redhat.com> | 2025-10-19 22:32:06 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-10-20 07:01:48 -1000 |
| commit | d5cf4d34a3331aa1dba954949ea71b5eafcbf0a8 (patch) | |
| tree | fab365d7cbb2a3c89066873b5ae7bd085c2ecdfe /kernel/sched/core.c | |
| parent | 211ddde0823f1442e4ad052a2f30f050145ccada (diff) | |
cgroup/cpuset: Don't track # of local child partitions
The cpuset structure has a nr_subparts field which tracks the number
of child local partitions underneath a particular cpuset. Right now,
nr_subparts is only used in partition_is_populated() to avoid iteration
of child cpusets if the condition is right. So by always performing the
child iteration, we can avoid tracking the number of child partitions
and simplify the code a bit.
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
0 files changed, 0 insertions, 0 deletions