diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1993-11-07 21:47:19 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1993-11-07 21:47:19 +0000 |
commit | f4639581fda74f746c87fbe5c22637f333461b90 (patch) | |
tree | a5b5203d32c767db4432563b43af614e9d2907e6 /sys | |
parent | 87e90eb9f3ccf51b04b8b92991bd7909502a3f21 (diff) | |
download | src-f4639581fda74f746c87fbe5c22637f333461b90.tar.gz src-f4639581fda74f746c87fbe5c22637f333461b90.zip |
Get rid of WFJ's use of sleep() for more user-friendly tsleep().
Notes
Notes:
svn path=/head/; revision=724
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 4 | ||||
-rw-r--r-- | sys/amd64/isa/isa.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/isa.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 144668765ac2..75ace1fc7491 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 ec083129b6cb..39e85bd9abfe 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; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 144668765ac2..75ace1fc7491 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/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/i386/isa/isa.c b/sys/i386/isa/isa.c index ec083129b6cb..39e85bd9abfe 100644 --- a/sys/i386/isa/isa.c +++ b/sys/i386/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; |