diff options
author | Tejun Heo <tj@kernel.org> | 2017-07-17 04:44:18 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-07-17 04:44:45 +0300 |
commit | 27f26753f8c063c4cd2f06318e977ae136574b28 (patch) | |
tree | f681a235e238768102fe5465c559d984d58b39fc /tools/perf/scripts/python/stackcollapse.py | |
parent | 788b950c62e06b02278a0fd380e1a0667996ce3c (diff) | |
download | linux-27f26753f8c063c4cd2f06318e977ae136574b28.tar.xz |
cgroup: replace css_set walking populated test with testing cgrp->nr_populated_csets
Implement trivial cgroup_has_tasks() which tests whether
cgrp->nr_populated_csets is zero and replace the explicit local
populated test in cgroup_subtree_control(). This simplifies the code
and cgroup_has_tasks() will be used in more places later.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions