summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/z8530tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/dev/z8530tty.c')
-rw-r--r--sys/arch/macppc/dev/z8530tty.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/arch/macppc/dev/z8530tty.c b/sys/arch/macppc/dev/z8530tty.c
index 2bbaff08527..b0b6e6e66e5 100644
--- a/sys/arch/macppc/dev/z8530tty.c
+++ b/sys/arch/macppc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.13 2010/06/28 14:13:29 deraadt Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.14 2010/07/02 17:27:01 nicm Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -781,15 +781,9 @@ zsstart(struct tty *tp)
if (zst->zst_tx_stopped)
goto out;
- if (tp->t_outq.c_cc <= tp->t_lowat) {
- if (ISSET(tp->t_state, TS_ASLEEP)) {
- CLR(tp->t_state, TS_ASLEEP);
- wakeup((caddr_t)&tp->t_outq);
- }
- selwakeup(&tp->t_wsel);
- if (tp->t_outq.c_cc == 0)
- goto out;
- }
+ ttwakeupwr(tp);
+ if (tp->t_outq.c_cc == 0)
+ goto out;
/* Grab the first contiguous region of buffer space. */
{