diff options
author | 2013-06-24 15:21:47 -0700 | |
---|---|---|
committer | 2013-06-24 15:21:47 -0700 | |
commit | a8a648c4acee2095262f7fa65b0d8a68a03c32e4 (patch) | |
tree | 8547cf0629054715b3541b9bbf2de6642ec9deba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cgroup: prefix global variables with "cgroup_" (diff) | |
download | linux-dev-a8a648c4acee2095262f7fa65b0d8a68a03c32e4.tar.xz linux-dev-a8a648c4acee2095262f7fa65b0d8a68a03c32e4.zip |
cgroup: remove cgroup->actual_subsys_mask
cgroup curiously has two subsystem masks, ->subsys_mask and
->actual_subsys_mask. The latter only exists because the new target
subsys_mask is passed into rebind_subsystems() via @root>subsys_mask.
rebind_subsystems() needs to know what the current mask is to decide
how to reach the target mask so ->actual_subsys_mask is used as the
temp location to remember the current state.
Adding a temporary field to a permanent data structure is rather silly
and can be misleading. Update rebind_subsystems() to take @added_mask
and @removed_mask instead and remove @root->actual_subsys_mask.
This patch shouldn't introduce any behavior changes.
v2: Comment and description updated as suggested by Li.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions