diff options
author | 2013-08-26 18:40:56 -0400 | |
---|---|---|
committer | 2013-08-26 18:40:56 -0400 | |
commit | ca8bdcaff0d77990fb69e0f946018c96a70851cc (patch) | |
tree | ac98548b8fc61cf8017a67df9be6c5a4e87a6201 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cgroup: rename cgroup_css_from_dir() to css_from_dir() and update its syntax (diff) | |
download | linux-dev-ca8bdcaff0d77990fb69e0f946018c96a70851cc.tar.xz linux-dev-ca8bdcaff0d77990fb69e0f946018c96a70851cc.zip |
cgroup: make cgroup_css() take cgroup_subsys * instead and allow NULL subsys
cgroup_css() is no longer used in hot paths. Make it take struct
cgroup_subsys * and allow the users to specify NULL subsys to obtain
the dummy_css. This removes open-coded NULL subsystem testing in a
couple users and generally simplifies the code.
After this patch, css_from_dir() also allows NULL @ss and returns the
matching dummy_css. This behavior change doesn't affect its only user
- perf.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions