Use tsleep instead of dalay; since we're mounting root, we can sleep trunk
authorenami <enami@NetBSD.org>
Fri, 19 Jan 2001 14:26:01 +0000
branchtrunk
changeset 75274 73d0227d5097
parent 75273 1f4140f41ca6
child 75275 a419d1e5f2b0
Use tsleep instead of dalay; since we're mounting root, we can sleep and no reason to use delay.
sys/nfs/nfs_boot.c
--- a/sys/nfs/nfs_boot.c	Fri Jan 19 14:14:03 2001 +0000
+++ b/sys/nfs/nfs_boot.c	Fri Jan 19 14:26:01 2001 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_boot.c,v 1.55 2000/12/10 23:17:01 fvdl Exp $	*/
+/*	$NetBSD: nfs_boot.c,v 1.56 2001/01/19 14:26:01 enami Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -212,7 +212,8 @@
 	}
 
 	if (up)
-		delay(3000000); /* give the link some time to get up */
+		/* give the link some time to get up */
+		tsleep(nfs_boot_ifupdown, PZERO, "nfsbif", 3 * hz);
 out:
 	soclose(so);
 	return (error);
@@ -270,7 +271,8 @@
 		goto out;
 	}
 
-	delay(3000000); /* give the link some time to get up */
+	/* give the link some time to get up */
+	tsleep(nfs_boot_setaddress, PZERO, "nfsbtd", 3 * hz);
 out:
 	soclose(so);
 	return (error);