[BNX2]: Use msleep().
bnx2.c (incorrectly) sets current->state directly to TASK_UNINTERRUPTIBLE, without going through set_task_state(). However all the code wants to do is an msleep so just make it do that instead... Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Acked-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b07d68b5ca
commit
8e54588161
@@ -3935,10 +3935,8 @@ bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
|
|||||||
REG_WR(bp, BNX2_PCICFG_MISC_CONFIG, val);
|
REG_WR(bp, BNX2_PCICFG_MISC_CONFIG, val);
|
||||||
|
|
||||||
if ((CHIP_ID(bp) == CHIP_ID_5706_A0) ||
|
if ((CHIP_ID(bp) == CHIP_ID_5706_A0) ||
|
||||||
(CHIP_ID(bp) == CHIP_ID_5706_A1)) {
|
(CHIP_ID(bp) == CHIP_ID_5706_A1))
|
||||||
current->state = TASK_UNINTERRUPTIBLE;
|
msleep(20);
|
||||||
schedule_timeout(HZ / 50);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Reset takes approximate 30 usec */
|
/* Reset takes approximate 30 usec */
|
||||||
for (i = 0; i < 10; i++) {
|
for (i = 0; i < 10; i++) {
|
||||||
|
Reference in New Issue
Block a user