sched: Remove noop in next_prio()
authorHillf Danton <[email protected]>
Fri, 17 Jun 2011 01:55:18 +0000 (21:55 -0400)
committerIngo Molnar <[email protected]>
Sun, 14 Aug 2011 10:00:45 +0000 (12:00 +0200)
When computing the next priority for a given run-queue, the check for
RT priority of the task determined by the pick_next_highest_task_rt()
function could be removed, since only RT tasks are returned by the
function.

Reviewed-by: Yong Zhang <[email protected]>
Signed-off-by: Hillf Danton <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched_rt.c

index 97540f0c9e47849543bc8a32e64b7bdff8ac4e01..e2698c0fc697fefcb13944e15bbcbadb742fcd42 100644 (file)
@@ -704,7 +704,7 @@ static inline int next_prio(struct rq *rq)
 {
        struct task_struct *next = pick_next_highest_task_rt(rq, rq->cpu);
 
-       if (next && rt_prio(next->prio))
+       if (next)
                return next->prio;
        else
                return MAX_RT_PRIO;