1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Loose ad_sleep, its of no use anymore.

This commit is contained in:
Søren Schmidt 1999-11-19 08:21:15 +00:00
parent 39d409c9e1
commit bb8f8c633e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53415

View File

@ -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)
{