Skip to contentSkip to conversation

sched: remove redundant code in cpu_cgroup_create()

PATCH Applied Li Zefan 2 participants 2 messages Oct 6, 2008

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 sched: remove redundant code in cpu_cgroup_create()

css will be initialized by cgroup core.

---
 kernel/sched.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
kernel/sched.c +0 -4
index 9889080..5fa8560 100644
@@ -8991,7 +8991,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;
 	}
 
@@ -9000,9 +8999,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;
 }
 
Signature · 1 line
1.5.4.rc3
Applied
#1 lore raw
Quoted 6 lines · Li Zefan

css will be initialized by cgroup core.

---
 kernel/sched.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

applied to tip/sched/devel, thanks!

Ingo