]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sched: no need to recalculate rq
authorRobert Love <rml@novell.com>
Sat, 8 Jan 2005 05:47:36 +0000 (21:47 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:47:36 +0000 (21:47 -0800)
no need to call task_rq in setscheduler; just use rq

Signed-Off-By: Robert Love <rml@novell.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sched.c

index 994ef2e9b912bbc1625065f6bf7388685f6d9d4b..ddc0534eed8a5de4e3e15bf875a62feeee7b5fa9 100644 (file)
@@ -3146,12 +3146,12 @@ recheck:
        }
        array = p->array;
        if (array)
-               deactivate_task(p, task_rq(p));
+               deactivate_task(p, rq);
        retval = 0;
        oldprio = p->prio;
        __setscheduler(p, policy, lp.sched_priority);
        if (array) {
-               __activate_task(p, task_rq(p));
+               __activate_task(p, rq);
                /*
                 * Reschedule if we are currently running on this runqueue and
                 * our priority decreased, or if we are not currently running on