diff options
author | Li Zefan <lizefan@huawei.com> | 2014-07-09 10:48:32 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-07-09 21:56:17 +0200 |
commit | ae1c802382f7af60aa54879fb4f5920a9df1ff48 (patch) | |
tree | 90a1cc5209552ab0046b423d64b58d6a8cdc5eab /mm/swapfile.c | |
parent | cpuset: initialize top_cpuset's configured masks at mount (diff) | |
download | linux-ae1c802382f7af60aa54879fb4f5920a9df1ff48.tar.xz linux-ae1c802382f7af60aa54879fb4f5920a9df1ff48.zip |
cpuset: apply cs->effective_{cpus,mems}
Now we can use cs->effective_{cpus,mems} as effective masks. It's
used whenever:
- we update tasks' cpus_allowed/mems_allowed,
- we want to retrieve tasks_cs(tsk)'s cpus_allowed/mems_allowed.
They actually replace effective_{cpu,node}mask_cpuset().
effective_mask == configured_mask & parent effective_mask except when
the reault is empty, in which case it inherits parent effective_mask.
The result equals the mask computed from effective_{cpu,node}mask_cpuset().
This won't affect the original legacy hierarchy, because in this case we
make sure the effective masks are always the same with user-configured
masks.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions