mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-10 03:07:16 +01:00
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>
This commit is contained in:
parent
c13bb16757
commit
8e8d73b4a5
1 changed files with 2 additions and 3 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue