From fc1f58e6bbb8b5f01b0e63dbc29d6f8ce797f3b6 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 29 Jul 1995 04:05:57 +0000 Subject: Always wake up writers after clearing TS_BUSY. This will soon be essential when I fix excessive wakeups for output-below-low-water. In cy.c and sio.c, wake up via the driver start routine to also eliminate duplicated code involving the clearing of TS_TTSTOP. Always (except in code to be replaced soon) call driver start routine directly instead of going through ttstart(). --- sys/dev/rc/rc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/rc/rc.c') diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 07e0264..e496a48 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -693,7 +693,7 @@ repeat: || (tp->t_cc[VSTART] == tp->t_cc[VSTOP]))) { tp->t_state &= ~TS_TTSTOP; tp->t_lflag &= ~FLUSHO; - ttstart(tp); + rc_start(tp); } } else { for (; tptr < eptr; tptr++) @@ -1468,6 +1468,7 @@ rc_discard_output(rc) rc->rc_optr = rc->rc_obufend; rc->rc_tp->t_state &= ~TS_BUSY; enable_intr(); + ttwwakeup(rc->rc_tp); } static void -- cgit v1.1