From 384d5963830a2b84ac255a4553d5a6134385a431 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 8 Jun 2002 18:52:46 +0000 Subject: Use tsleep. --- sys/arch/sparc/dev/xy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/sparc/dev/xy.c') 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: -- cgit v1.2.3