diff options
| author | 2010-07-02 17:27:01 +0000 | |
|---|---|---|
| committer | 2010-07-02 17:27:01 +0000 | |
| commit | 4cc8800e3a0bcd323fb689c6f886d94920b8a5a8 (patch) | |
| tree | 6a3b4d2c1d22794983427d18fd4eb5ef03b9c9e2 /sys/arch/sparc/dev/magma.c | |
| parent | Constipate init_hash() to eliminate a warning and remove a cast that is (diff) | |
| download | wireguard-openbsd-4cc8800e3a0bcd323fb689c6f886d94920b8a5a8.tar.xz wireguard-openbsd-4cc8800e3a0bcd323fb689c6f886d94920b8a5a8.zip | |
Move common code for waking up writers on a tty into a function.
ok deraadt matthew millert
Diffstat (limited to 'sys/arch/sparc/dev/magma.c')
| -rw-r--r-- | sys/arch/sparc/dev/magma.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/sparc/dev/magma.c b/sys/arch/sparc/dev/magma.c index 3209d16bb23..50be93a3f9b 100644 --- a/sys/arch/sparc/dev/magma.c +++ b/sys/arch/sparc/dev/magma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magma.c,v 1.26 2010/06/28 14:13:30 deraadt Exp $ */ +/* $OpenBSD: magma.c,v 1.27 2010/07/02 17:27:01 nicm Exp $ */ /*- * Copyright (c) 1998 Iain Hibbert @@ -1201,14 +1201,7 @@ mtty_start(tp) * If we are sleeping and output has drained below * low water mark, awaken. */ - if (tp->t_outq.c_cc <= tp->t_lowat) { - if (ISSET(tp->t_state, TS_ASLEEP)) { - CLR(tp->t_state, TS_ASLEEP); - wakeup(&tp->t_outq); - } - - selwakeup(&tp->t_wsel); - } + ttwakeupwr(tp); /* * If there is something to send, start transmitting. |
