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

index 4d9bc8d9e32f5e0c8f6908d6a66ffbc2a3faa295..d7c09f77cbe5bf2ee66738508ead2a9010765899 100644 (file)
@@ -108,7 +108,7 @@ static void t509_enable ( struct nic *nic ) {
        else if (connector == utp) {
                GO_WINDOW(nic->ioaddr,4);
                outw(ENABLE_UTP, nic->ioaddr + EP_W4_MEDIA_TYPE);
-               sleep(2);       /* Give time for media to negotiate */
+               mdelay(2000);   /* Give time for media to negotiate */
                GO_WINDOW(nic->ioaddr,1);
        }