aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2011-03-23 07:17:23 -0400
committerIngo Molnar <mingo@elte.hu>2011-03-23 08:27:58 -0400
commit20dd67407160eac577656cd2f8ee9a1fead960b8 (patch)
treec3598a848330b8b23e243288f5672c6ef2660333 /kernel
parente815f0a84fc9a98e5cc3ef0b520122e5e18520e7 (diff)
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 052120d67706..a361e20ec2cd 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)
8443{ 8443{
8444 struct cfs_rq *cfs_rq; 8444 struct cfs_rq *cfs_rq;
8445 struct sched_entity *se; 8445 struct sched_entity *se;
8446 struct rq *rq;
8447 int i; 8446 int i;
8448 8447
8449 tg->cfs_rq = kzalloc(sizeof(cfs_rq) * nr_cpu_ids, GFP_KERNEL); 8448 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)
8456 tg->shares = NICE_0_LOAD; 8455 tg->shares = NICE_0_LOAD;
8457 8456
8458 for_each_possible_cpu(i) { 8457 for_each_possible_cpu(i) {
8459 rq = cpu_rq(i);
8460
8461 cfs_rq = kzalloc_node(sizeof(struct cfs_rq), 8458 cfs_rq = kzalloc_node(sizeof(struct cfs_rq),
8462 GFP_KERNEL, cpu_to_node(i)); 8459 GFP_KERNEL, cpu_to_node(i));
8463 if (!cfs_rq) 8460 if (!cfs_rq)