OSDN Git Service

RDMA/hns: Use delay instead of usleep
authorLijun Ou <oulijun@huawei.com>
Wed, 25 Jul 2018 07:29:38 +0000 (15:29 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 22:51:47 +0000 (16:51 -0600)
commit73b4e1f4c04e76b19fca296d09b97555bfb35202
treeb178d0b56876c93309e79e8942c7f6ec7e49a9a2
parent26f63b9c33ceda12fb9136a1d0c80e03c9ebb514
RDMA/hns: Use delay instead of usleep

In order to avoid using usleep function in lock function, we use delay
function instead of it.  Besides, it also use brackets for standardized
the computed order.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hem.c