Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hpc hpf1275a(4): Convert to ttylock/ttyunlock.



details:   https://anonhg.NetBSD.org/src/rev/2239d1730b66
branches:  trunk
changeset: 372090:2239d1730b66
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:45:10 2022 +0000

description:
hpf1275a(4): Convert to ttylock/ttyunlock.

diffstat:

 sys/dev/hpc/hpf1275a_tty.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 6e47bc8c8247 -r 2239d1730b66 sys/dev/hpc/hpf1275a_tty.c
--- a/sys/dev/hpc/hpf1275a_tty.c        Wed Oct 26 23:44:36 2022 +0000
+++ b/sys/dev/hpc/hpf1275a_tty.c        Wed Oct 26 23:45:10 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpf1275a_tty.c,v 1.31 2021/08/07 16:19:11 thorpej Exp $ */
+/*     $NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $ */
 
 /*
  * Copyright (c) 2004 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.31 2021/08/07 16:19:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $");
 
 #include "opt_wsdisplay_compat.h"
 
@@ -346,9 +346,9 @@
        int s;
 
        s = spltty();
-       mutex_spin_enter(&tty_lock);
+       ttylock(tp);
        ttyflush(tp, FREAD | FWRITE);
-       mutex_spin_exit(&tty_lock);      /* XXX */
+       ttyunlock(tp);   /* XXX */
        ttyldisc_release(tp->t_linesw);
        tp->t_linesw = ttyldisc_default();
        if (sc != NULL) {



Home | Main Index | Thread Index | Old Index