Skip to content

Commit

Permalink
tms380tr: Use mdelay() in tms380tr_wait().
Browse files Browse the repository at this point in the history
This driver tries to do up to half-second udelay()
calls, which overflows on x86-64.

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 25, 2010
1 parent 11a766c commit 5202e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tokenring/tms380tr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ void tms380tr_wait(unsigned long time)
tmp = schedule_timeout_interruptible(tmp);
} while(time_after(tmp, jiffies));
#else
udelay(time);
mdelay(time / 1000);
#endif
}

Expand Down

0 comments on commit 5202e17

Please sign in to comment.