Commit f0911aaea991342ca8346dbcfec3b7575ab22cba
Committed by
David S. Miller
1 parent
13ccf043ce
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/atm/he.c
... | ... | @@ -1055,7 +1055,7 @@ |
1055 | 1055 | he_writel(he_dev, 0x0, RESET_CNTL); |
1056 | 1056 | he_writel(he_dev, 0xff, RESET_CNTL); |
1057 | 1057 | |
1058 | - udelay(16*1000); /* 16 ms */ | |
1058 | + msleep(16); /* 16 ms */ | |
1059 | 1059 | status = he_readl(he_dev, RESET_CNTL); |
1060 | 1060 | if ((status & BOARD_RST_STATUS) == 0) { |
1061 | 1061 | hprintk("reset failed\n"); |