Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/9d23df92becb
branches:  trunk
changeset: 372096:9d23df92becb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:47:55 2022 +0000

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

diffstat:

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

diffs (29 lines):

diff -r 6b8c04060c11 -r 9d23df92becb sys/dev/sun/sunkbd.c
--- a/sys/dev/sun/sunkbd.c      Wed Oct 26 23:46:50 2022 +0000
+++ b/sys/dev/sun/sunkbd.c      Wed Oct 26 23:47:55 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunkbd.c,v 1.31 2022/09/25 21:30:29 thorpej Exp $      */
+/*     $NetBSD: sunkbd.c,v 1.32 2022/10/26 23:47:55 riastradh Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -51,7 +51,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.31 2022/09/25 21:30:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.32 2022/10/26 23:47:55 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -301,8 +301,8 @@
 {
        struct tty *tp = k->k_priv;
 
-       mutex_spin_enter(&tty_lock);
+       ttylock(tp);
        ttyoutput(c, tp);
        ttstart(tp);
-       mutex_spin_exit(&tty_lock);
+       ttyunlock(tp);
 }



Home | Main Index | Thread Index | Old Index