Skip to contentSkip to conversation

sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group

PATCH In review Sergey Senozhatsky 1 participant 2 messages Mar 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group

sched: remove unused rq variable and cpu_rq call from alloc_fair_sched_group

---

 kernel/sched.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
kernel/sched.c +0 -3
index a172494..23c687e 100644
@@ -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)
#1 lore raw

[tip:sched/urgent] sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group()

Commit-ID:  20dd67407160eac577656cd2f8ee9a1fead960b8
Gitweb:     http://git.kernel.org/tip/20dd67407160eac577656cd2f8ee9a1fead960b8
Author:     Sergey Senozhatsky <[email protected]>
AuthorDate: Wed, 23 Mar 2011 13:17:23 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 23 Mar 2011 13:27:58 +0100

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

Cc Steven Rostedt <[email protected]>
Cc Peter Zijlstra <[email protected]>

LKML-Reference: <[email protected]>

---
 kernel/sched.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
kernel/sched.c +0 -3
index 052120d..a361e20 100644
@@ -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)