summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-07 21:47:19 +0000
committerwollman <wollman@FreeBSD.org>1993-11-07 21:47:19 +0000
commitd2ef484c3d2498ce1f0acf93f40bc61513c9c539 (patch)
treea5b5203d32c767db4432563b43af614e9d2907e6 /sys/amd64
parent1ee55cfc6a25a7aa7120bebcc29ca579215cf6b3 (diff)
downloadFreeBSD-src-d2ef484c3d2498ce1f0acf93f40bc61513c9c539.zip
FreeBSD-src-d2ef484c3d2498ce1f0acf93f40bc61513c9c539.tar.gz
Get rid of WFJ's use of sleep() for more user-friendly tsleep().
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/amd64/isa/isa.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 1446687..75ace1f 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.13 1993/10/29 08:58:34 davidg Exp $
+ * $Id: machdep.c,v 1.14 1993/10/29 09:06:56 davidg Exp $
*/
#include "npx.h"
@@ -729,7 +729,7 @@ physstrat(bp, strat, prio)
return;
s = splbio();
while ((bp->b_flags & B_DONE) == 0)
- sleep((caddr_t)bp, prio);
+ tsleep((caddr_t)bp, prio, "physstr", 0);
splx(s);
vunmapbuf(bp);
bp->b_un.b_addr = baddr;
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index ec08312..39e85bd 100644
--- a/sys/amd64/isa/isa.c
+++ b/sys/amd64/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.4 1993/10/13 15:59:28 rgrimes Exp $
+ * $Id: isa.c,v 1.5 1993/10/18 18:45:48 rgrimes Exp $
*/
/*
@@ -541,7 +541,7 @@ isa_allocphysmem(caddr_t va, unsigned length, void (*func)()) {
isaphysmemunblock = func;
while (isaphysmemflag & B_BUSY) {
isaphysmemflag |= B_WANTED;
- sleep(&isaphysmemflag, PRIBIO);
+ tsleep(&isaphysmemflag, PRIBIO, "isaphys", 0);
}
isaphysmemflag |= B_BUSY;
OpenPOWER on IntegriCloud