]> git.baikalelectronics.ru Git - kernel.git/commit
IB: Convert msleep below 20ms to usleep_range
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 23 May 2017 08:29:42 +0000 (11:29 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 18 Jul 2017 01:21:22 +0000 (21:21 -0400)
commit98e77d9fd7dff05019436370e78c3ec0f9894e25
treef7c8843608a3390d9e116a648b395c5067158b02
parentf7c8f2e9ddc71db0ae344f3ffb19df03ef32b719
IB: Convert msleep below 20ms to usleep_range

The msleep(1) may do not sleep 1 ms as expected
and will sleep longer. The simple conversion from
msleep to usleep_range between 1ms and 2ms can solve an
issue.

The full and comprehensive explanation can be found at [1] and [2].

[1] https://lkml.org/lkml/2007/8/3/250
[2] Documentation/timers/timers-howto.txt

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mcg.c
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c