mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
e4f2212e53
commit
14c685d9eb
1 changed files with 1 additions and 1 deletions
|
@ -2380,7 +2380,7 @@ static int vmbus_bus_suspend(struct device *dev)
|
||||||
* We wait here until the completion of any channel
|
* We wait here until the completion of any channel
|
||||||
* offers that are currently in progress.
|
* offers that are currently in progress.
|
||||||
*/
|
*/
|
||||||
msleep(1);
|
usleep_range(1000, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_lock(&vmbus_connection.channel_mutex);
|
mutex_lock(&vmbus_connection.channel_mutex);
|
||||||
|
|
Loading…
Reference in a new issue