diff options
author | bde <bde@FreeBSD.org> | 1995-07-22 16:45:22 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-07-22 16:45:22 +0000 |
commit | 35509aece996a3270a9b30cb7e72b84ed7f0415c (patch) | |
tree | 8394b2b46acc5c94b577982d2fdb4c9fa0e24167 /sys/dev/rc | |
parent | 18829b9aef82ca3456ff7f260ef55cd9c71e4e18 (diff) | |
download | FreeBSD-src-35509aece996a3270a9b30cb7e72b84ed7f0415c.zip FreeBSD-src-35509aece996a3270a9b30cb7e72b84ed7f0415c.tar.gz |
Obtained from: partly from ancient patches of mine via 1.1.5
Give names to the magic tty i/o sleep addresses and use them. This makes
it easier to remember what the addresses are for and to keep them unique.
Diffstat (limited to 'sys/dev/rc')
-rw-r--r-- | sys/dev/rc/rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 1db4a3d..07e0264 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -825,7 +825,7 @@ again: if (!(tp->t_state & TS_CARR_ON) && !CALLOUT(dev) && !(tp->t_cflag & CLOCAL) && !(flag & O_NONBLOCK)) { rc->rc_dcdwaits++; - error = tsleep(&tp->t_rawq, TTIPRI | PCATCH, "rcdcd", 0); + error = tsleep(TSA_CARR_ON(tp), TTIPRI | PCATCH, "rcdcd", 0); rc->rc_dcdwaits--; if (error != 0) goto out; @@ -895,7 +895,7 @@ register struct rc_chans *rc; } rc->rc_flags &= ~RC_ACTOUT; wakeup((caddr_t) &rc->rc_rcb); /* wake bi */ - wakeup((caddr_t) &tp->t_rawq); /* wake dcd */ + wakeup(TSA_CARR_ON(tp)); (void) splx(s); } |