Re: [PATCH] sched: remove noop in next_prio()

From: Jesper Juhl
Date: Tue May 24 2011 - 10:23:55 EST


On Tue, 24 May 2011, Hillf Danton wrote:

> On Tue, May 24, 2011 at 7:53 PM, Mike Galbraith <efault@xxxxxx> wrote:
> > On Tue, 2011-05-24 at 16:17 +0800, Yong Zhang wrote:
> >> On Sat, May 21, 2011 at 10:19 PM, Hillf Danton <dhillf@xxxxxxxxx> wrote:
> >> > 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 task is returned by the
> >> > function.
> >> >
> >> > Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
> >>
> >> Yup, it's true.
> >
> > (could whack the else while there)
> >
>
> Where is it, Mike?
>


- if (next && rt_prio(next->prio))
+ if (next)
return next->prio;
- else
- return MAX_RT_PRIO;
+ return MAX_RT_PRIO;



--
Jesper Juhl <jj@xxxxxxxxxxxxx> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/