]> git.baikalelectronics.ru Git - kernel.git/commit
timers: Clarify usleep_range() function comment
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 May 2016 21:23:02 +0000 (16:23 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Jun 2016 22:59:14 +0000 (00:59 +0200)
commit372c251ee2ed81ee49e1f082522ba5c69d4440e1
treec9598d40a1161ddaf9afef234f8c6c2c4bc5dcaa
parent50679971a4ae964f2b066b1c74c0c7e3f9790e03
timers: Clarify usleep_range() function comment

Update the usleep_range() function comment to make it clear that it can
only be used in non-atomic context.

Previously we claimed usleep_range() was a drop-in replacement for udelay()
where wakeup is flexible.  But that's only true in non-atomic contexts,
where it's possible to sleep instead of delay.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20160531212302.28502.44995.stgit@bhelgaas-glaptop2.roam.corp.google.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timer.c