]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sched: Remove unused 'rq' variable and cpu_rq() call from alloc_fair_sched_group()
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Wed, 23 Mar 2011 11:17:23 +0000 (13:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 23 Mar 2011 12:27:58 +0000 (13:27 +0100)
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

index 052120d67706f5fba6823d86446afd6b7ec6de06..a361e20ec2cda7ad7c6c274c27e90f61b7573021 100644 (file)
@@ -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)