Pārlūkot izejas kodu

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

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 gadus atpakaļ
vecāks
revīzija
59bae324c0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt