[PATCH 1/2] staging/nokia_h4p: replace short sleep using msleep with usleep_range

Pavel Machek pavel at ucw.cz
Thu Aug 14 17:53:53 UTC 2014


On Thu 2014-08-14 12:46:40, Son Le wrote:
> >From this page (https://www.kernel.org/doc/Documentation/timers/timers-howto.txt):
> "msleep(1~20) may not do what the caller intends, and will often sleep
> longer (~20 ms actual sleep for any value given in the 1~20ms range).
> In many cases this is not the desired behavior."
> 
> The call to msleep in this code may cause a much longer sleep.

Much longer sleep is probably ok here; and without testing, I'd
prefer not to change it.

Thanks,
							Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


More information about the devel mailing list