Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dec vax/dz(4): Convert to ttylock/ttyunlock.
details: https://anonhg.NetBSD.org/src/rev/6e47bc8c8247
branches: trunk
changeset: 372089:6e47bc8c8247
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Oct 26 23:44:36 2022 +0000
description:
vax/dz(4): Convert to ttylock/ttyunlock.
diffstat:
sys/dev/dec/dz.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 82c7577dfa06 -r 6e47bc8c8247 sys/dev/dec/dz.c
--- a/sys/dev/dec/dz.c Wed Oct 26 23:44:03 2022 +0000
+++ b/sys/dev/dec/dz.c Wed Oct 26 23:44:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dz.c,v 1.42 2014/07/25 08:10:36 dholland Exp $ */
+/* $NetBSD: dz.c,v 1.43 2022/10/26 23:44:36 riastradh Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.42 2014/07/25 08:10:36 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.43 2022/10/26 23:44:36 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -407,7 +407,7 @@
/* Use DMBIS and *not* DMSET or else we clobber incoming bits */
if (dzmctl(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++;
@@ -416,7 +416,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