Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield()

From: Steven Rostedt
Date: Tue Feb 23 2016 - 10:04:33 EST


On Tue, 23 Feb 2016 13:28:22 +0100
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> Would something like this make sense instead?

It works perfectly.

Reported-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Tested-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Thanks!

-- Steve

>
> It also retains the ->runtime while yielded, and would actually 'fix' a
> case where, when we call yield, we would have had a negative runtime
> after update_curr_dl().
>
> The current code will 'gift' us extra runtime in that case.
>
> ---