i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sun, 24 Dec 2017 10:39:40 +0000 (18:39 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 5 Jan 2018 18:47:29 +0000 (13:47 -0500)
commit106b8863069e0fb31468ddd6ffcd162cc8430280
treedc59397d17981e971f171a115f676d8800655ab0
parent57f6b6639afab6cda27851e485bdc244462ba135
i40iw: Replace mdelay with msleep in i40iw_wait_pe_ready

i40iw_wait_pe_ready is not called in an interrupt handler
nor holding a spinlock.
The function mdelay in it can be replaced with msleep,
to reduce busy wait.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_main.c