diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-05-17 05:46:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-17 21:55:38 +0200 |
commit | 93c65d13d8a0b7c272868d4a9779f96fc973df26 (patch) | |
tree | 186f864e6d0439909bf8117ffc7edb90c8d0d1d3 /drivers/net/vmxnet3/vmxnet3_ethtool.c | |
parent | bonding: introduce link change helper (diff) | |
download | linux-93c65d13d8a0b7c272868d4a9779f96fc973df26.tar.xz linux-93c65d13d8a0b7c272868d4a9779f96fc973df26.zip |
vmxnet3: Replace msleep(1) with usleep_range()
As documented in Documentation/timers/timers-howto.txt,
replace msleep(1) with usleep_range().
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_ethtool.c')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_ethtool.c b/drivers/net/vmxnet3/vmxnet3_ethtool.c index 2ff27314e047..559db051a500 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethtool.c +++ b/drivers/net/vmxnet3/vmxnet3_ethtool.c @@ -600,7 +600,7 @@ vmxnet3_set_ringparam(struct net_device *netdev, * completion. */ while (test_and_set_bit(VMXNET3_STATE_BIT_RESETTING, &adapter->state)) - msleep(1); + usleep_range(1000, 2000); if (netif_running(netdev)) { vmxnet3_quiesce_dev(adapter); |