diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-10-06 05:27:00 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-06 10:13:34 +0400 |
commit | 34b3ede2353604ec9861c1d900b2a835ff85de47 (patch) | |
tree | c7661ffe4143f5df331b6b2e4813aa48fdd91ca5 /kernel | |
parent | 2c10c22af088ab5d94fae93ce3fe6436b2a208b4 (diff) | |
download | linux-34b3ede2353604ec9861c1d900b2a835ff85de47.tar.xz |
sched: remove redundant code in cpu_cgroup_create()
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 2caedc47e764..9715f4ce6cfe 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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; } @@ -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; } |