diff options
| author | Tejun Heo <tj@kernel.org> | 2016-03-03 09:57:59 -0500 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:57 +0300 |
| commit | 3707f97525143c7d55ee0a8bebf8967ebdeba520 (patch) | |
| tree | c4446b485407d2b717a8619a2fe27e38cce6f712 /tools/perf/scripts/python/netdev-times.py | |
| parent | bb3797f357994b6c92880c6bce1d5117be23f363 (diff) | |
cgroup: factor out cgroup_apply_control_disable() from cgroup_subtree_control_write()
Factor out css disabling and hiding into cgroup_apply_control_disable().
* Nest subsystem walk inside child walk. The child walk will later be
converted to subtree walk which is a bit more expensive.
* Instead of operating on the differential masks @css_enable and
@css_disable, simply disable or hide csses according to the current
cgroup_control() and cgroup_ss_mask(). This leads to the same
result and is simpler and more robust.
* This allows error handling path to share the same code.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
