aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-10-05 21:27:00 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-06 02:13:34 -0400
commit34b3ede2353604ec9861c1d900b2a835ff85de47 (patch)
treec7661ffe4143f5df331b6b2e4813aa48fdd91ca5
parent2c10c22af088ab5d94fae93ce3fe6436b2a208b4 (diff)
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>
-rw-r--r--kernel/sched.c4
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)
9088 9088
9089 if (!cgrp->parent) { 9089 if (!cgrp->parent) {
9090 /* This is early initialization for the top cgroup */ 9090 /* This is early initialization for the top cgroup */
9091 init_task_group.css.cgroup = cgrp;
9092 return &init_task_group.css; 9091 return &init_task_group.css;
9093 } 9092 }
9094 9093
@@ -9097,9 +9096,6 @@ cpu_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cgrp)
9097 if (IS_ERR(tg)) 9096 if (IS_ERR(tg))
9098 return ERR_PTR(-ENOMEM); 9097 return ERR_PTR(-ENOMEM);
9099 9098
9100 /* Bind the cgroup to task_group object we just created */
9101 tg->css.cgroup = cgrp;
9102
9103 return &tg->css; 9099 return &tg->css;
9104} 9100}
9105 9101