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

From: Yong Zhang
Date: Fri May 27 2011 - 05:17:52 EST


On Thu, May 26, 2011 at 9:08 PM, Hillf Danton <dhillf@xxxxxxxxx> wrote:
> Checking task to be RT is removed since only RT task is served here.
>
> Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>

Actually this patch has been raised for two times:
https://lkml.org/lkml/2010/12/13/622
http://lkml.org/lkml/2010/2/9/139

Thanks,
Yong

> ---
>
> --- tip-git/kernel/sched_rt.c  Sun May 22 20:12:01 2011
> +++ sched_rt.c ÂThu May 26 21:11:19 2011
> @@ -1516,7 +1516,7 @@ skip:
> Âstatic void pre_schedule_rt(struct rq *rq, struct task_struct *prev)
> Â{
> Â Â Â Â/* Try to pull RT tasks here if we lower this rq's prio */
> - Â Â Â if (unlikely(rt_task(prev)) && rq->rt.highest_prio.curr > prev->prio)
> + Â Â Â if (rq->rt.highest_prio.curr > prev->prio)
> Â Â Â Â Â Â Â Âpull_rt_task(rq);
> Â}
>



--
Only stand for myself
--
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/