From: Matheus Castello Date: Sun, 15 Nov 2020 19:57:34 +0000 (-0300) Subject: drivers: hv: vmbus: Fix call msleep using < 20ms X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=14c685d9eb361768bb5ca452b999e43498f15746;p=linux.git drivers: hv: vmbus: Fix call msleep using < 20ms Fixed checkpatch warning: MSLEEP: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.rst Signed-off-by: Matheus Castello Reviewed-by: Michael Kelley Link: https://lore.kernel.org/r/20201115195734.8338-7-matheus@castello.eng.br Signed-off-by: Wei Liu --- diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 61d28c7432639..0a2711aa63a15 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2380,7 +2380,7 @@ static int vmbus_bus_suspend(struct device *dev) * We wait here until the completion of any channel * offers that are currently in progress. */ - msleep(1); + usleep_range(1000, 2000); } mutex_lock(&vmbus_connection.channel_mutex);