cpuset: export effective masks to userspace
authorLi Zefan <lizefan@huawei.com>
Wed, 9 Jul 2014 08:49:25 +0000 (16:49 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 9 Jul 2014 19:56:18 +0000 (15:56 -0400)
commitafd1a8b3e0bc4d045d762dfdbc4d0cee189893a4
treee552df774556b1b91271da1107831834d809c1de
parent5d8ba82c3a1f10b77bf39ee3e7670d6789a8d149
cpuset: export effective masks to userspace

cpuset.cpus and cpuset.mems are the configured masks, and we need
to export effective masks to userspace, so users know the real
cpus_allowed and mems_allowed that apply to the tasks in a cpuset.

v2:
- export those masks unconditionally, suggested by Tejun.

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