diff options
author | 2013-06-25 11:53:37 -0700 | |
---|---|---|
committer | 2013-06-25 11:53:37 -0700 | |
commit | 30159ec7a9db7f3c91e2b27e66389c49302efd5c (patch) | |
tree | 68ff4165c8cab6f029a713e3a0a084f16f384ce6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cgroup: move init_css_set initialization inside cgroup_mutex (diff) | |
download | linux-dev-30159ec7a9db7f3c91e2b27e66389c49302efd5c.tar.xz linux-dev-30159ec7a9db7f3c91e2b27e66389c49302efd5c.zip |
cgroup: implement for_each_[builtin_]subsys()
There are quite a few places where all loaded [builtin] subsys are
iterated. Implement for_each_[builtin_]subsys() and replace manual
iterations with those to simplify those places a bit. The new
iterators automatically skip NULL subsystems. This shouldn't cause
any functional difference.
Iteration loops which scan all subsystems and then skipping modular
ones explicitly are converted to use for_each_builtin_subsys().
While at it, reorder variable declarations and adjust whitespaces a
bit in the affected functions.
v2: Add lockdep_assert_held() in for_each_subsys() and add comments
about synchronization 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