drivers: hv: vmbus: Fix call msleep using < 20ms
authorMatheus Castello <matheus@castello.eng.br>
Sun, 15 Nov 2020 19:57:34 +0000 (16:57 -0300)
committerWei Liu <wei.liu@kernel.org>
Tue, 17 Nov 2020 10:56:48 +0000 (10:56 +0000)
Fixed checkpatch warning: MSLEEP: msleep < 20ms can sleep for up to
20ms; see Documentation/timers/timers-howto.rst

Signed-off-by: Matheus Castello <matheus@castello.eng.br>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20201115195734.8338-7-matheus@castello.eng.br
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c

index 61d28c74326396b7b95b3359ac13013798e67d75..0a2711aa63a159bb0cf46a4f6a2cde14722be418 100644 (file)
@@ -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);