Busy wait in network initialization

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 28 12:39:11 UTC 2012


Hello,

in the function rtems_bsdnet_initialize() which is called early during network 
initialization we have this:

	/*
	 * Ensure that `seconds' is greater than 0
	 */
     while (rtems_bsdnet_seconds_since_boot() == 0)
         rtems_task_wake_after(1);

Why is this nearly one second busy wait necessary, if we initialize the network 
during system startup?

I removed this loop and the network seems to work normally.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list