lkml.org 
[lkml]   [2017]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] sched/deadline: Remove if statement before clearing throttle and yielded
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.

\
 
 \ /
  Last update: 2017-05-11 21:51    [W:0.079 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site