RDMA/hns: Remove jiffies operation in disable interrupt context
authorLang Cheng <chenglang@huawei.com>
Fri, 24 May 2019 07:31:23 +0000 (15:31 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 27 May 2019 20:28:39 +0000 (17:28 -0300)
commit669cefb654cb69b280e31380f5fc7e3b5755b0cd
tree3e887d2f51109f226fe2a0edb33584e57700ba61
parent780f33962ef27d7f27c6b47a55593c6ffd357922
RDMA/hns: Remove jiffies operation in disable interrupt context

In some functions, the jiffies operation is unnecessary, and we can
control delay using mdelay and udelay functions only.  Especially, in
hns_roce_v1_clear_hem, the function calls spin_lock_irqsave, the context
disables interrupt, so we can not use jiffies and msleep functions.

Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c