public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove redundant code in cpu_cgroup_create()
@ 2008-10-06  1:27 Li Zefan
  2008-10-06  6:13 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Li Zefan @ 2008-10-06  1:27 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, LKML

css will be initialized by cgroup core.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
 kernel/sched.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 9889080..5fa8560 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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;
 }
 
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sched: remove redundant code in cpu_cgroup_create()
  2008-10-06  1:27 [PATCH] sched: remove redundant code in cpu_cgroup_create() Li Zefan
@ 2008-10-06  6:13 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-10-06  6:13 UTC (permalink / raw)
  To: Li Zefan; +Cc: Peter Zijlstra, LKML


* Li Zefan <lizf@cn.fujitsu.com> wrote:

> css will be initialized by cgroup core.
> 
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---
>  kernel/sched.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)

applied to tip/sched/devel, thanks!
	
	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-06  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-06  1:27 [PATCH] sched: remove redundant code in cpu_cgroup_create() Li Zefan
2008-10-06  6:13 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox