mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Get rid of WFJ's use of sleep() for more user-friendly tsleep().
This commit is contained in:
parent
87e90eb9f3
commit
f4639581fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=724
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user