]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec400e854d9225803f456d24200e4137d0ad1d50
treedc59397d17981e971f171a115f676d8800655ab0
parenta71e7390992be2625d3866c227eb274d567a7925
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