Commit 67d95538 authored by Hillf Danton's avatar Hillf Danton Committed by Ingo Molnar
Browse files

sched: Remove noop in next_prio()

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
Reviewed-by: default avatarYong Zhang <>
Signed-off-by: default avatarHillf Danton <>
Signed-off-by: default avatarSteven Rostedt <>
Signed-off-by: default avatarPeter Zijlstra <>

Signed-off-by: default avatarIngo Molnar <>
parent c350a04e
......@@ -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;
return MAX_RT_PRIO;
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