]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[etherfabric] Avoid use of sleep() in driver code
authorMichael Brown <mcb30@ipxe.org>
Tue, 22 Mar 2016 15:19:25 +0000 (15:19 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Mar 2016 15:19:25 +0000 (15:19 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/etherfabric.c

index 29d117443e74695872516427b7bad06aa5fbdc56..2cd41d4cab51fa7733cec492a478b2a554cf1ee3 100644 (file)
@@ -4006,7 +4006,7 @@ efab_init_mac ( struct efab_nic *efab )
                 * because we want to use it, or because we're about
                 * to reset the mac anyway
                 */
-               sleep ( 2 );
+               mdelay ( 2000 );
 
                if ( ! efab->link_up ) {
                        EFAB_ERR ( "!\n" );