提交 916cb1b5 编写于 作者: L Lang Cheng 提交者: Xie XiuQi

remove unnecessary jiffies operations part2

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

When use mdelay, some jiffies are unnecessary.

Feature or Bugfix:Bugfix
Signed-off-by: NLang Cheng <chenglang@huawei.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 85e6045d
......@@ -790,7 +790,7 @@ static int hns_roce_v2_cmd_hw_resetting(struct hns_roce_dev *hr_dev,
* reschedule soft reset process once again.
*/
hr_dev->dis_db = true;
end = HNS_ROCE_V2_HW_RST_TIMEOUT;
end = HNS_ROCE_V2_HW_RST_TIMEOUT*1000;
while (ops->get_hw_reset_stat(handle) && end) {
udelay(1);
end -= 1;
......@@ -820,7 +820,7 @@ static int hns_roce_v2_cmd_sw_resetting(struct hns_roce_dev *hr_dev)
* wait until hardware reset finished, we should exit with error.
*/
hr_dev->dis_db = true;
end = HNS_ROCE_V2_HW_RST_TIMEOUT;
end = HNS_ROCE_V2_HW_RST_TIMEOUT*1000;
while (ops->ae_dev_reset_cnt(handle) == hr_dev->reset_cnt &&
end) {
udelay(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册