diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-24 00:06:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-24 00:06:26 +0000 |
commit | 0717c33b6439fd713c3cd6097f3c637c5f38f742 (patch) | |
tree | f656ae6db059c06492567c5a680277d87730a02a /sys/i386/isa/asc.c | |
parent | b5d0418fc1e94ea9baa7b6ebb9ee8bfe9c277ae9 (diff) | |
download | FreeBSD-src-0717c33b6439fd713c3cd6097f3c637c5f38f742.zip FreeBSD-src-0717c33b6439fd713c3cd6097f3c637c5f38f742.tar.gz |
Use selrecord() instead of doing the work ourselves.
Diffstat (limited to 'sys/i386/isa/asc.c')
-rw-r--r-- | sys/i386/isa/asc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/i386/isa/asc.c b/sys/i386/isa/asc.c index 086e0c0..eabaff8 100644 --- a/sys/i386/isa/asc.c +++ b/sys/i386/isa/asc.c @@ -865,7 +865,6 @@ ascpoll(dev_t dev, int events, struct proc *p) int unit = UNIT(minor(dev)); struct asc_unit *scu = unittab + unit; int sps; - struct proc *p1; int revents = 0; sps=spltty(); @@ -877,11 +876,7 @@ ascpoll(dev_t dev, int events, struct proc *p) if (!(scu->flags & DMA_ACTIVE)) dma_restart(scu); - if (scu->selp.si_pid && (p1=pfind(scu->selp.si_pid)) - && p1->p_wchan == (caddr_t)&selwait) - scu->selp.si_flags = SI_COLL; - else - scu->selp.si_pid = p->p_pid; + selrecord(p, &scu->selp); } } splx(sps); |