Re: [PATCH 2/6] sched/dl: fix yield task artificial overrun

From: Juri Lelli
Date: Wed Oct 29 2014 - 12:34:00 EST


Hi,

On 27/10/14 01:41, Wanpeng Li wrote:
> The yield semantic of deadline class is to reduce remaining runtime to
> zero, and then update_curr_dl() will stop it. However, comsumed bandwidth
> is reduced from the budget of yield task again even if it has already been
> set to zero which leads to artificial overrun. This patch fix it by reduce
> remaining runtime to zero if there is still remaining runtime after comsumed
> bandwidth is accumulated.
>

Oh, right. But, how about what below instead (with a proper comment
and changelog)?

Thanks,

- Juri