Skip to content

Commit f0911aa

Browse files
arndbdavem330
authored andcommitted
atm: he: use mdelay instead of large udelay constants
ARM cannot handle udelay for more than 2 miliseconds, and it is rather bad style to block the cpu for 16ms anyway, so let's use msleep instead. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Chas Williams <chas@cmf.nrl.navy.mil> Cc: linux-atm-general@lists.sourceforge.net Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 13ccf04 commit f0911aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/atm/he.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ static int he_start(struct atm_dev *dev)
10551055
he_writel(he_dev, 0x0, RESET_CNTL);
10561056
he_writel(he_dev, 0xff, RESET_CNTL);
10571057

1058-
udelay(16*1000); /* 16 ms */
1058+
msleep(16); /* 16 ms */
10591059
status = he_readl(he_dev, RESET_CNTL);
10601060
if ((status & BOARD_RST_STATUS) == 0) {
10611061
hprintk("reset failed\n");

0 commit comments

Comments
 (0)