OSDN Git Service

net: thunderx: Reduce mbox wait response time.
authorGeetha sowjanya <gakula@marvell.com>
Mon, 2 Mar 2020 09:59:01 +0000 (15:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2020 19:13:58 +0000 (11:13 -0800)
commit605a9bbc7f49f1d6fb5a7f2610771573523dc324
tree4f684501146b9b9563997dece69be8836c463187
parentc0d2507abc2634ff6c6081d450924ffc68e740e0
net: thunderx: Reduce mbox wait response time.

Replace msleep() with usleep_range() as internally it uses hrtimers.
This will put a cap on maximum wait time.

Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nicvf_main.c