From: Hillf Danton Date: Fri, 17 Jun 2011 01:55:18 +0000 (-0400) Subject: sched: Remove noop in next_prio() X-Git-Tag: upstream/snapshot3+hdmi~8921^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67d955383ab2ef8866c494c14156a4f3d29e441c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Yong Zhang Signed-off-by: Hillf Danton Signed-off-by: Steven Rostedt Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/BANLkTimxmWiof9s5AvS3v_0X+sMiE=0x5g@mail.gmail.com Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 97540f0..e2698c0 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -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;