Re: [RFC v2 4/7] Fix the update of the total -deadline utilization

From: Peter Zijlstra
Date: Tue Apr 05 2016 - 08:59:07 EST


On Fri, Apr 01, 2016 at 05:12:30PM +0200, Luca Abeni wrote:
> + /*
> + * XXX this is slightly incorrect: when the task
> + * utilization decreases, we should delay the total
> + * utilization change until the task's 0-lag point.
> + * But this would require to set the task's "inactive
> + * timer" when the task is not inactive.
> + */

Could you quickly remind me why this is a problem? The timeline does
continue running right? So even if the task isn't active now, it will
still reach its 0-lag point.

> __dl_clear(dl_b, p->dl.dl_bw);
> __dl_add(dl_b, new_bw);
> err = 0;