bootp can use mdelay
PATCH 1/1 bootp can use mdelay
Cleanup bootp code by using mdelay.
Signed-off-by Pavel Machek <[email protected]>
net/bootp.c +2 -3
@@ -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 */
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 1/1 bootp can use mdelay
Quoted 1 line · Pavel Machek
Cleanup bootp code by using mdelay.
Acked-by Marek Vasut <[email protected]>
Best regards,
Marek Vasut
Quoted 4 lines · Pavel Machek
Cleanup bootp code by using mdelay.
Signed-off-by Pavel Machek <[email protected]>Acked-by Marek Vasut <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140722/bcb23b1a/attachment.pgp>