提交 8e8d73b4 编写于 作者: P Pavel Machek 提交者: Tom Rini

bootp can use mdelay

Cleanup bootp code by using mdelay.
Signed-off-by: NPavel Machek <pavel@denx.de>
Acked-by: NMarek Vasut <marex@denx.de>
上级 c13bb167
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册