summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2016-01-30 01:44:29 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-03-30 08:37:17 +0300
commitd90b5b0ec1c7a3099dee9c18071a5b714eb3de52 (patch)
treedbec3d53734137d0333d581a0ab67061d18c9b91 /drivers/net/ethernet
parente2873d43f9c607e9d855b8ae120d5990ba1722df (diff)
downloadlinux-d90b5b0ec1c7a3099dee9c18071a5b714eb3de52.tar.xz
ixgbe: Use udelay to avoid sleeping while atomic
Use udelay instead of usleep_range because this can be called while a lock is held. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
index 87aca3f7c3de..68a9c646498e 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
@@ -355,7 +355,7 @@ static s32 ixgbe_iosf_wait(struct ixgbe_hw *hw, u32 *ctrl)
command = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL);
if (!(command & IXGBE_SB_IOSF_CTRL_BUSY))
break;
- usleep_range(10, 20);
+ udelay(10);
}
if (ctrl)
*ctrl = command;