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>
This commit is contained in:
Родитель
e2873d43f9
Коммит
d90b5b0ec1
|
@ -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);
|
command = IXGBE_READ_REG(hw, IXGBE_SB_IOSF_INDIRECT_CTRL);
|
||||||
if (!(command & IXGBE_SB_IOSF_CTRL_BUSY))
|
if (!(command & IXGBE_SB_IOSF_CTRL_BUSY))
|
||||||
break;
|
break;
|
||||||
usleep_range(10, 20);
|
udelay(10);
|
||||||
}
|
}
|
||||||
if (ctrl)
|
if (ctrl)
|
||||||
*ctrl = command;
|
*ctrl = command;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче