]> 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)
commit582838488b316384a9ddd1901369ee3f1356b069
treef7c8843608a3390d9e116a648b395c5067158b02
parentd44a0f576db76b6540b4977051b3aac80058ec13
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