diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-08 18:52:46 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-08 18:52:46 +0000 |
commit | 384d5963830a2b84ac255a4553d5a6134385a431 (patch) | |
tree | 662b4b12d13ca20e85129943514e7003a9079258 | |
parent | 26062794d280938d0acd239a8bc024ee7eb6c696 (diff) |
Use tsleep.
-rw-r--r-- | sys/arch/sparc/dev/xd.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/xy.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index 4a6ab84f39a..68b8e1b19bc 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.23 2002/05/29 08:28:36 art Exp $ */ +/* $OpenBSD: xd.c,v 1.24 2002/06/08 18:52:45 art Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -1523,7 +1523,7 @@ xdc_submit_iorq(xdcsc, iorqno, type) return XD_ERR_AOK; /* success */ case XD_SUB_WAIT: while (iorq->iopb->done == 0) { - sleep(iorq, PRIBIO); + tsleep(iorq, PRIBIO, "xdiorq", 0); } return (iorq->errno); case XD_SUB_POLL: @@ -1555,7 +1555,7 @@ xdc_submit_iorq(xdcsc, iorqno, type) return (XD_ERR_AOK); /* success */ case XD_SUB_WAIT: while (iorq->iopb->done == 0) { - sleep(iorq, PRIBIO); + tsleep(iorq, PRIBIO, "xdiorq", 0); } return (iorq->errno); case XD_SUB_POLL: diff --git a/sys/arch/sparc/dev/xy.c b/sys/arch/sparc/dev/xy.c index ed8dc58d41b..1d943ebcb7a 100644 --- a/sys/arch/sparc/dev/xy.c +++ b/sys/arch/sparc/dev/xy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xy.c,v 1.20 2002/05/29 08:28:36 art Exp $ */ +/* $OpenBSD: xy.c,v 1.21 2002/06/08 18:52:45 art Exp $ */ /* $NetBSD: xy.c,v 1.26 1997/07/19 21:43:56 pk Exp $ */ /* @@ -1374,7 +1374,7 @@ xyc_submit_iorq(xycsc, iorq, type) return XY_ERR_AOK; /* success */ case XY_SUB_WAIT: while (iorq->iopb->done == 0) { - sleep(iorq, PRIBIO); + tsleep(iorq, PRIBIO, "xyiorq", 0); } return (iorq->errno); case XY_SUB_POLL: /* steal controller */ @@ -1406,7 +1406,7 @@ xyc_submit_iorq(xycsc, iorq, type) return (XY_ERR_AOK); /* success */ case XY_SUB_WAIT: while (iorq->iopb->done == 0) { - sleep(iorq, PRIBIO); + tsleep(iorq, PRIBIO, "xyiorq", 0); } return (iorq->errno); case XY_SUB_POLL: |