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

From: Hillf Danton
Date: Tue May 24 2011 - 10:26:38 EST


On Tue, May 24, 2011 at 10:16 PM, Jesper Juhl <jj@xxxxxxxxxxxxx> wrote:
> 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.
>
>

Very cool, thank you:)

Hillf
--
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/