]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: remove redundant code in cpu_cgroup_create()
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 6 Oct 2008 01:27:00 +0000 (09:27 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Oct 2008 06:13:34 +0000 (08:13 +0200)
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>
kernel/sched.c

index 2caedc47e764d1bf24aa96bf6d784250681c0a98..9715f4ce6cfe4141bf4d06d9714ac05aa8cfe8f1 100644 (file)
@@ -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;
 }