]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sky2: Replace mdelay with msleep in sky2_vpd_wait
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sun, 24 Dec 2017 03:54:33 +0000 (11:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 17:27:33 +0000 (12:27 -0500)
commit75ce7191eac5972405d1752a991bc002c2957b65
tree600d5cf2574e1e9fd1a463855175d1e91c30c7ea
parentbcecb4bbf88aa03171c30652bca761cf27755a6b
sky2: Replace mdelay with msleep in sky2_vpd_wait

sky2_vpd_wait 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c