diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 1999-11-19 08:21:15 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 1999-11-19 08:21:15 +0000 |
| commit | bb8f8c633e68a3167c89cd0a84f0673dc2dcb633 (patch) | |
| tree | bcda08bac4d258e15ec5d9d592e4f86b7f28fce1 /sys/dev | |
| parent | 39d409c9e198a07166277c58f078745a49cf67d3 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/ata-disk.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 9ded0c3f3a9e8..a11f8bbdbfb86 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -81,7 +81,6 @@ static void ad_attach(void *); static int32_t ad_getparam(struct ad_softc *); static void ad_start(struct ad_softc *); static void ad_timeout(struct ad_request *); -static void ad_sleep(struct ad_softc *, int8_t *); static int8_t ad_version(u_int16_t); static void ad_drvinit(void); @@ -291,7 +290,6 @@ adopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p) dl->d_ncylinders = adp->cylinders; dl->d_secpercyl = adp->sectors * adp->heads; dl->d_secperunit = adp->total_secs; - ad_sleep(adp, "adop2"); return 0; } @@ -652,17 +650,6 @@ ad_timeout(struct ad_request *request) ata_reinit(adp->controller); } -static void -ad_sleep(struct ad_softc *adp, int8_t *mesg) -{ - int32_t s; - - s = splbio(); - while (adp->controller->active != ATA_IDLE) - tsleep((caddr_t)&adp->controller->active, PZERO - 1, mesg, 1); - splx(s); -} - static int8_t ad_version(u_int16_t version) { |
