Skip to content

Commit

Permalink
drivers: hv: vmbus: Fix call msleep using < 20ms
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matheus Castello authored and Wei Liu committed Nov 17, 2020
1 parent e4f2212 commit 14c685d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 14c685d

Please sign in to comment.