Skip to content

Commit 479f614

Browse files
lizf-osingomolnar
authored andcommitted
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>
1 parent a2b0ae2 commit 479f614

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎include/linux/cgroup.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ struct cgroup_subsys {
458458
void (*bind)(struct cgroup *root);
459459

460460
int subsys_id;
461-
int active;
462461
int disabled;
463462
int early_init;
464463
/*

‎kernel/cgroup.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4468,7 +4468,6 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
44684468
* need to invoke fork callbacks here. */
44694469
BUG_ON(!list_empty(&init_task.tasks));
44704470

4471-
ss->active = 1;
44724471
BUG_ON(online_css(ss, dummytop));
44734472

44744473
mutex_unlock(&cgroup_mutex);
@@ -4573,7 +4572,6 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss)
45734572
}
45744573
write_unlock(&css_set_lock);
45754574

4576-
ss->active = 1;
45774575
ret = online_css(ss, dummytop);
45784576
if (ret)
45794577
goto err_unload;
@@ -4614,7 +4612,6 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss)
46144612
mutex_lock(&cgroup_mutex);
46154613

46164614
offline_css(ss, dummytop);
4617-
ss->active = 0;
46184615

46194616
if (ss->use_id)
46204617
idr_destroy(&ss->idr);

0 commit comments

Comments
 (0)