cpuset: introduce effective_{cpumask|nodemask}_cpuset()
authorLi Zefan <lizefan@huawei.com>
Sun, 9 Jun 2013 09:15:22 +0000 (17:15 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 13 Jun 2013 17:48:32 +0000 (10:48 -0700)
commit070b57fcacc9dfc23a180290079078373fb697e1
tree12bec33a6fbcb8b4db4cd5f2938dd902f244070a
parent33ad801dfb5c8b1127c72fdb745ce8c630150f3f
cpuset: introduce effective_{cpumask|nodemask}_cpuset()

effective_cpumask_cpuset() returns an ancestor cpuset which has
non-empty cpumask.

If a cpuset is empty and the tasks in it need to update their
cpus_allowed, they take on the ancestor cpuset's cpumask.

This currently won't change any behavior, but it will later allow us
to keep tasks in empty cpusets.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cpuset.c