Re: [RFC][PATCH] sched/deadline: Remove if statement before clearing throttle and yielded

From: Peter Zijlstra
Date: Thu May 11 2017 - 15:51:12 EST


On Thu, May 11, 2017 at 03:01:16PM +0100, Juri Lelli wrote:

> > - if (dl_se->dl_yielded)
> > - dl_se->dl_yielded = 0;
> > - if (dl_se->dl_throttled)
> > - dl_se->dl_throttled = 0;
> > + dl_se->dl_yielded = 0;
> > + dl_se->dl_throttled = 0;
> > }
>
> Looks good to me.
>
> Peter, any particular reason why you wanted to first check the values?

No idea, could be general paranoia on unconditional writes or something.