diff options
author | Li Zefan <lizefan@huawei.com> | 2013-07-31 09:51:31 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-31 07:47:34 -0400 |
commit | e14880f7bb7e0dc0933af304998371dd543ceb40 (patch) | |
tree | d17af9f967acdce1761264a2361986f10348995e /arch/x86/kernel/setup.c | |
parent | b414dc09a31d41d696093a4cce9fb2853a5ecd4e (diff) | |
download | blackbird-op-linux-e14880f7bb7e0dc0933af304998371dd543ceb40.tar.gz blackbird-op-linux-e14880f7bb7e0dc0933af304998371dd543ceb40.zip |
cgroup: implement cgroup_from_id()
This will be used as a replacement for css_lookup().
There's a difference with cgroup id and css id. cgroup id starts with 0,
while css id starts with 1.
v4:
- also check if cggroup_mutex is held.
- make it an inline function.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/setup.c')
0 files changed, 0 insertions, 0 deletions