Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
function.

Reviewed-by: default avatarYong Zhang <yong.zhang0@gmail.com>
Signed-off-by: default avatarHillf Danton <dhillf@gmail.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/BANLkTimxmWiof9s5AvS3v_0X+sMiE=0x5g@mail.gmail.com


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c350a04e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;