diff options
author | Hillf Danton <dhillf@gmail.com> | 2011-06-17 03:55:18 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-08-14 12:00:45 +0200 |
commit | 67d955383ab2ef8866c494c14156a4f3d29e441c (patch) | |
tree | 3b18abcc6ccc8c7d4001319d41fb1af6c2971377 /kernel/sched_rt.c | |
parent | sched: fix broken SCHED_RESET_ON_FORK handling (diff) | |
download | linux-67d955383ab2ef8866c494c14156a4f3d29e441c.tar.xz linux-67d955383ab2ef8866c494c14156a4f3d29e441c.zip |
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 <yong.zhang0@gmail.com>
Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/BANLkTimxmWiof9s5AvS3v_0X+sMiE=0x5g@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 97540f0c9e47..e2698c0fc697 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; |