]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: usleep_range is preferred over udelay where wakeup is flexible
authorSunny Kumar <sunny.kumar.roy@gmail.com>
Tue, 7 Jul 2015 06:57:03 +0000 (12:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2015 22:45:04 +0000 (15:45 -0700)
commite616b39a16d4458224d91697b0a2599336f0c38c
tree38236d5789675d04049820105a5ab0c53064dce4
parent655fe4effe0f1f40e4f6ca6b3cc64a7fe0032183
usb: usleep_range is preferred over udelay where wakeup is flexible

According to Documentation/timers/timers-howto.txt"
udelay() is only called once from a place where sleeping is allowed.
We can replace it with a call to usleep_range()
with a reasonable upper limit.

Signed-off-by: Sunny Kumar <sunny.kumar.roy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/transport.c