Commit 34b3ede2353604ec9861c1d900b2a835ff85de47

Authored by Li Zefan
Committed by Ingo Molnar
1 parent 2c10c22af0

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>

Showing 1 changed file with 0 additions and 4 deletions Side-by-side Diff

... ... @@ -9088,7 +9088,6 @@
9088 9088  
9089 9089 if (!cgrp->parent) {
9090 9090 /* This is early initialization for the top cgroup */
9091   - init_task_group.css.cgroup = cgrp;
9092 9091 return &init_task_group.css;
9093 9092 }
9094 9093  
... ... @@ -9096,9 +9095,6 @@
9096 9095 tg = sched_create_group(parent);
9097 9096 if (IS_ERR(tg))
9098 9097 return ERR_PTR(-ENOMEM);
9099   -
9100   - /* Bind the cgroup to task_group object we just created */
9101   - tg->css.cgroup = cgrp;
9102 9098  
9103 9099 return &tg->css;
9104 9100 }