diff options
author | Pavel Machek <pavel@denx.de> | 2014-07-11 11:39:37 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-22 07:44:25 -0400 |
commit | 8e8d73b4a5ae051ca2de091151677f2d8340c1f6 (patch) | |
tree | 701ee5355d1c55e26807aa89d9a4779390cbd05e /net | |
parent | c13bb167578f716e38828cf9ca0bb38173da5a1d (diff) | |
download | u-boot-imx-8e8d73b4a5ae051ca2de091151677f2d8340c1f6.zip u-boot-imx-8e8d73b4a5ae051ca2de091151677f2d8340c1f6.tar.gz u-boot-imx-8e8d73b4a5ae051ca2de091151677f2d8340c1f6.tar.bz2 |
bootp can use mdelay
Cleanup bootp code by using mdelay.
Signed-off-by: Pavel Machek <pavel@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/bootp.c b/net/bootp.c index 189a003..fdb97cb 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -605,7 +605,7 @@ BootpRequest(void) int extlen, pktlen, iplen; int eth_hdr_size; #ifdef CONFIG_BOOTP_RANDOM_DELAY - ulong i, rand_ms; + ulong rand_ms; #endif bootstage_mark_name(BOOTSTAGE_ID_BOOTP_START, "bootp_start"); @@ -623,8 +623,7 @@ BootpRequest(void) rand_ms = rand() >> 19; printf("Random delay: %ld ms...\n", rand_ms); - for (i = 0; i < rand_ms; i++) - udelay(1000); /*Wait 1ms*/ + mdelay(rand_ms); #endif /* CONFIG_BOOTP_RANDOM_DELAY */ |