summaryrefslogtreecommitdiff
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-03-29 14:44:42 +0800
committerIngo Molnar <mingo@kernel.org>2013-04-10 13:54:22 +0200
commit479f614110b889d5783acdaec865ede3cdb96b97 (patch)
treed125a16e1118d7d42125d764843a3869e2f60d4a /kernel/cgroup.c
parenta2b0ae25fc8bfeeb4022b8e847ab811b3c8368d1 (diff)
downloadlwn-479f614110b889d5783acdaec865ede3cdb96b97.tar.gz
lwn-479f614110b889d5783acdaec865ede3cdb96b97.zip
cgroup: Kill subsys.active flag
The only user was cpuacct. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/5155385A.4040207@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index a32f9432666c..5c462813722d 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4468,7 +4468,6 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
* need to invoke fork callbacks here. */
BUG_ON(!list_empty(&init_task.tasks));
- ss->active = 1;
BUG_ON(online_css(ss, dummytop));
mutex_unlock(&cgroup_mutex);
@@ -4573,7 +4572,6 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss)
}
write_unlock(&css_set_lock);
- ss->active = 1;
ret = online_css(ss, dummytop);
if (ret)
goto err_unload;
@@ -4614,7 +4612,6 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss)
mutex_lock(&cgroup_mutex);
offline_css(ss, dummytop);
- ss->active = 0;
if (ss->use_id)
idr_destroy(&ss->idr);