Commit 38ff2da8 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] sched: no need to recalculate rq

no need to call task_rq in setscheduler; just use rq
Signed-Off-By: default avatarRobert Love <rml@novell.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 74f5ef85
......@@ -3146,12 +3146,12 @@ static int setscheduler(pid_t pid, int policy, struct sched_param __user *param)
}
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment