Skip to content

Commit

Permalink
sched: remove redundant code in cpu_cgroup_create()
Browse files Browse the repository at this point in the history
css will be initialized by cgroup core.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Oct 6, 2008
1 parent 2c10c22 commit 34b3ede
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -9088,7 +9088,6 @@ cpu_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cgrp)

if (!cgrp->parent) {
/* This is early initialization for the top cgroup */
init_task_group.css.cgroup = cgrp;
return &init_task_group.css;
}

Expand All @@ -9097,9 +9096,6 @@ cpu_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cgrp)
if (IS_ERR(tg))
return ERR_PTR(-ENOMEM);

/* Bind the cgroup to task_group object we just created */
tg->css.cgroup = cgrp;

return &tg->css;
}

Expand Down

0 comments on commit 34b3ede

Please sign in to comment.