Commit 14c685d9 authored by Matheus Castello's avatar Matheus Castello Committed by Wei Liu

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: default avatarMatheus Castello <matheus@castello.eng.br>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20201115195734.8338-7-matheus@castello.eng.brSigned-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent e4f2212e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment