Re: [PATCH] timer: Make msleep(0) a nop

2016-08-17 Thread John Stultz
On Fri, Aug 12, 2016 at 1:40 AM, wrote: > From: Ville Syrjälä > > Thanks to the msecs_to_jiffies()+1 msleep(0) may actually sleep for up > to one jiffy. Presumably the caller should be satisfied if we "sleep" > for 0 jiffies instead of 0-1 jiffies, so let's just turn msleep(0) > into a nop. > >

[PATCH] timer: Make msleep(0) a nop

2016-08-12 Thread ville . syrjala
From: Ville Syrjälä Thanks to the msecs_to_jiffies()+1 msleep(0) may actually sleep for up to one jiffy. Presumably the caller should be satisfied if we "sleep" for 0 jiffies instead of 0-1 jiffies, so let's just turn msleep(0) into a nop. This can simplify some callers as they don't have to che