Sfoglia il codice sorgente

[etherfabric] Avoid use of sleep() in driver code

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 anni fa
parent
commit
59bae324c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c Vedi File

4006
 		 * because we want to use it, or because we're about
4006
 		 * because we want to use it, or because we're about
4007
 		 * to reset the mac anyway
4007
 		 * to reset the mac anyway
4008
 		 */
4008
 		 */
4009
-		sleep ( 2 );
4009
+		mdelay ( 2000 );
4010
 
4010
 
4011
 		if ( ! efab->link_up ) {
4011
 		if ( ! efab->link_up ) {
4012
 			EFAB_ERR ( "!\n" );
4012
 			EFAB_ERR ( "!\n" );

Loading…
Annulla
Salva