diff options
| author | Tejun Heo <[email protected]> | 2015-09-18 11:56:28 -0400 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2015-09-18 11:56:28 -0400 |
| commit | 9e10a130d9b62af976d17d120c95f3650769312c (patch) | |
| tree | 2a580955a56434f6e7c455a8f0ebf6eec71a9194 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | fc5ed1e95410ad73b2ab8f33cd90eb3bcf6c98a1 (diff) | |
cgroup: replace cgroup_on_dfl() tests in controllers with cgroup_subsys_on_dfl()
cgroup_on_dfl() tests whether the cgroup's root is the default
hierarchy; however, an individual controller is only interested in
whether the controller is attached to the default hierarchy and never
tests a cgroup which doesn't belong to the hierarchy that the
controller is attached to.
This patch replaces cgroup_on_dfl() tests in controllers with faster
static_key based cgroup_subsys_on_dfl(). This leaves cgroup core as
the only user of cgroup_on_dfl() and the function is moved from the
header file to cgroup.c.
Signed-off-by: Tejun Heo <[email protected]>
Acked-by: Zefan Li <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions