Re: [PATCH] sched/rt: Make update_curr_rt() more accurate

From: Peter Zijlstra
Date: Mon Feb 05 2018 - 05:31:42 EST


On Mon, Feb 05, 2018 at 11:30:38AM +0100, Peter Zijlstra wrote:
> On Mon, Feb 05, 2018 at 11:18:41AM +0800, Wen Yang wrote:
> > rq->clock_task may be updated between the two calls of
> > rq_clock_task() in update_curr_rt(). Calling rq_clock_task() only
> > once makes it more accurate and efficient, taking update_curr() as
> > reference.
> >
> > Signed-off-by: Wen Yang <wen.yang99@xxxxxxxxxx>
> > Reviewed-by: Jiang Biao <jiang.biao2@xxxxxxxxxx>
>
> Thanks!

I just noticed update_curr_dl() has the exact same issue, could you also
do a patch for that?