public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group
@ 2011-03-23 11:17 Sergey Senozhatsky
  2011-03-23 12:54 ` [tip:sched/urgent] sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group() tip-bot for Sergey Senozhatsky
  0 siblings, 1 reply; 2+ messages in thread
From: Sergey Senozhatsky @ 2011-03-23 11:17 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Ingo Molnar, Andrew Morton, Thomas Gleixner, Steven Rostedt,
	linux-kernel

sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>

---

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

diff --git a/kernel/sched.c b/kernel/sched.c
index a172494..23c687e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8434,7 +8434,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
 {
 	struct cfs_rq *cfs_rq;
 	struct sched_entity *se;
-	struct rq *rq;
 	int i;
 
 	tg->cfs_rq = kzalloc(sizeof(cfs_rq) * nr_cpu_ids, GFP_KERNEL);
@@ -8447,8 +8446,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
 	tg->shares = NICE_0_LOAD;
 
 	for_each_possible_cpu(i) {
-		rq = cpu_rq(i);
-
 		cfs_rq = kzalloc_node(sizeof(struct cfs_rq),
 				      GFP_KERNEL, cpu_to_node(i));
 		if (!cfs_rq)


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

* [tip:sched/urgent] sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group()
  2011-03-23 11:17 [PATCH] sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group Sergey Senozhatsky
@ 2011-03-23 12:54 ` tip-bot for Sergey Senozhatsky
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Sergey Senozhatsky @ 2011-03-23 12:54 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, rostedt, peterz, sergey.senozhatsky,
	tglx, mingo

Commit-ID:  20dd67407160eac577656cd2f8ee9a1fead960b8
Gitweb:     http://git.kernel.org/tip/20dd67407160eac577656cd2f8ee9a1fead960b8
Author:     Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
AuthorDate: Wed, 23 Mar 2011 13:17:23 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Wed, 23 Mar 2011 13:27:58 +0100

sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group()

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20110323111722.GA4244@swordfish.minsk.epam.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 kernel/sched.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 052120d..a361e20 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8443,7 +8443,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
 {
 	struct cfs_rq *cfs_rq;
 	struct sched_entity *se;
-	struct rq *rq;
 	int i;
 
 	tg->cfs_rq = kzalloc(sizeof(cfs_rq) * nr_cpu_ids, GFP_KERNEL);
@@ -8456,8 +8455,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
 	tg->shares = NICE_0_LOAD;
 
 	for_each_possible_cpu(i) {
-		rq = cpu_rq(i);
-
 		cfs_rq = kzalloc_node(sizeof(struct cfs_rq),
 				      GFP_KERNEL, cpu_to_node(i));
 		if (!cfs_rq)

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

end of thread, other threads:[~2011-03-23 12:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 11:17 [PATCH] sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group Sergey Senozhatsky
2011-03-23 12:54 ` [tip:sched/urgent] sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group() tip-bot for Sergey Senozhatsky

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