summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-all.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-10 06:37:05 +0000
committerjhb <jhb@FreeBSD.org>2001-08-10 06:37:05 +0000
commit2ff1c253cdbfd553e53fca698ea48f0fedd1ed13 (patch)
treea43614b25c6b04cbe646ec4432f620996c2b3993 /sys/dev/ata/atapi-all.c
parentbb40f57a7caad930203ee3bf5e653cd8d69e1019 (diff)
downloadFreeBSD-src-2ff1c253cdbfd553e53fca698ea48f0fedd1ed13.zip
FreeBSD-src-2ff1c253cdbfd553e53fca698ea48f0fedd1ed13.tar.gz
- Remove asleep(), await(), and M_ASLEEP.
- Callers of asleep() and await() have been converted to calling tsleep(). The only caller outside of M_ASLEEP was the ata driver, which called both asleep() and await() with spl-raised, so there was no need for the asleep() and await() pair. M_ASLEEP was unused. Reviewed by: jasone, peter
Diffstat (limited to 'sys/dev/ata/atapi-all.c')
-rw-r--r--sys/dev/ata/atapi-all.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ata/atapi-all.c b/sys/dev/ata/atapi-all.c
index ac15c7e..b7d902b 100644
--- a/sys/dev/ata/atapi-all.c
+++ b/sys/dev/ata/atapi-all.c
@@ -199,10 +199,6 @@ atapi_queue_cmd(struct atapi_softc *atp, int8_t *ccb, caddr_t data,
s = splbio();
- /* if not using callbacks, prepare to sleep for this request */
- if (!callback)
- asleep((caddr_t)request, PRIBIO, "atprq", 0);
-
/* append onto controller queue and try to start controller */
#ifdef ATAPI_DEBUG
ata_printf(atp->controller, atp->unit, "queueing %s ",
@@ -222,7 +218,7 @@ atapi_queue_cmd(struct atapi_softc *atp, int8_t *ccb, caddr_t data,
}
/* wait for request to complete */
- await(PRIBIO, 0);
+ tsleep((caddr_t)request, PRIBIO, "atprq", 0);
splx(s);
error = request->error;
if (error)
OpenPOWER on IntegriCloud