Skip to content
Commit 27f26753 authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
parent 788b950c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment