qlcnic: Use usleep_range() instead of msleep() for sleep less than 20ms
authorJitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Wed, 27 Aug 2014 16:43:19 +0000 (12:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Aug 2014 03:15:36 +0000 (20:15 -0700)
commitc1b2037fc141cc838435e58a9e4efb0b92a696e4
tree4953f2d1196a40dd48b367e0274629b88c448109
parent40e2b8ed855357b3b285d6575cec228e9ce8ebd1
qlcnic: Use usleep_range() instead of msleep() for sleep less than 20ms

As per recommendation, msleep() may sleep longer than intended time for
values less than 20ms. So, use usleep_range() instead of msleep()

Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c