Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/uba vax/qvaux(4): Convert to ttylock/ttyunlock.
details: https://anonhg.NetBSD.org/src/rev/d13bb0336e2c
branches: trunk
changeset: 372105:d13bb0336e2c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Oct 27 00:00:25 2022 +0000
description:
vax/qvaux(4): Convert to ttylock/ttyunlock.
diffstat:
sys/arch/vax/uba/qvaux.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 00fc80cadafe -r d13bb0336e2c sys/arch/vax/uba/qvaux.c
--- a/sys/arch/vax/uba/qvaux.c Wed Oct 26 23:59:56 2022 +0000
+++ b/sys/arch/vax/uba/qvaux.c Thu Oct 27 00:00:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qvaux.c,v 1.4 2021/08/07 16:19:07 thorpej Exp $ */
+/* $NetBSD: qvaux.c,v 1.5 2022/10/27 00:00:25 riastradh Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -548,7 +548,7 @@
/* Use DMBIS and *not* DMSET or else we clobber incoming bits */
if (qvauxmctl(sc, line, DML_DTR, DMBIS) & DML_DCD)
tp->t_state |= TS_CARR_ON;
- mutex_spin_enter(&tty_lock);
+ ttylock(tp);
while (!(flag & O_NONBLOCK) && !(tp->t_cflag & CLOCAL) &&
!(tp->t_state & TS_CARR_ON)) {
tp->t_wopen++;
@@ -557,7 +557,7 @@
if (error)
break;
}
- mutex_spin_exit(&tty_lock);
+ ttyunlock(tp);
if (error)
return (error);
return ((*tp->t_linesw->l_open)(dev, tp));
Home |
Main Index |
Thread Index |
Old Index