kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* udelay vs usleep_range
@ 2016-09-11 15:58 Gargi Sharma
  2016-09-11 16:33 ` Nicholas Mc Guire
  2016-09-11 16:37 ` Peter Senna Tschudin
  0 siblings, 2 replies; 5+ messages in thread
From: Gargi Sharma @ 2016-09-11 15:58 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I ran the checkpatch script over drivers/staging/nvec.c and got the
following warning

 udelay(33);

CHECK: usleep_range is preferred over udelay; see
Documentation/timers/timers-howto.txt

I checked out the timers-howto.txt and for usleep_range, one has to specify
the lower and upper limit for the timer. How does one decide what the upper
limit will be if one is to change the function from udelay to usleep_range?

Thanks!
Gargi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160911/14b83409/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-11 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-11 15:58 udelay vs usleep_range Gargi Sharma
2016-09-11 16:33 ` Nicholas Mc Guire
2016-09-11 16:37 ` Peter Senna Tschudin
2016-09-11 16:39   ` Nicholas Mc Guire
2016-09-11 16:48   ` Nicholas Mc Guire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).