summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorMatheus Castello <matheus@castello.eng.br>2020-11-15 16:57:34 -0300
committerWei Liu <wei.liu@kernel.org>2020-11-17 10:56:48 +0000
commit14c685d9eb361768bb5ca452b999e43498f15746 (patch)
treef75211e5440bd533c696f9909f6d8e39cfc38cd3 /drivers/hv
parente4f2212e53c265ed9fb2f5b936b63cd57acb70ff (diff)
downloadlinux-14c685d9eb361768bb5ca452b999e43498f15746.tar.bz2
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 <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>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/vmbus_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index 61d28c743263..0a2711aa63a1 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);