Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/0f7b5400f797
branches:  trunk
changeset: 372093:0f7b5400f797
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Oct 26 23:46:24 2022 +0000

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

diffstat:

 sys/dev/pci/cz.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r 841798626169 -r 0f7b5400f797 sys/dev/pci/cz.c
--- a/sys/dev/pci/cz.c  Wed Oct 26 23:45:43 2022 +0000
+++ b/sys/dev/pci/cz.c  Wed Oct 26 23:46:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cz.c,v 1.64 2018/12/09 11:14:02 jdolecek Exp $ */
+/*     $NetBSD: cz.c,v 1.65 2022/10/26 23:46:24 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.64 2018/12/09 11:14:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.65 2022/10/26 23:46:24 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -731,9 +731,9 @@
                                /*
                                 * Do wakeup stuff here.
                                 */
-                               mutex_spin_enter(&tty_lock); /* XXX */
+                               ttylock(tp); /* XXX */
                                ttwakeup(tp);
-                               mutex_spin_exit(&tty_lock); /* XXX */
+                               ttyunlock(tp); /* XXX */
                                wakeup(tp);
                        }
                        break;
@@ -754,9 +754,9 @@
                                /*
                                 * Do wakeup stuff here.
                                 */
-                               mutex_spin_enter(&tty_lock); /* XXX */
+                               ttylock(tp); /* XXX */
                                ttwakeup(tp);
-                               mutex_spin_exit(&tty_lock); /* XXX */
+                               ttyunlock(tp); /* XXX */
                                wakeup(tp);
                        }
                        break;
@@ -804,9 +804,9 @@
                         * flags set. So TTY_FE by itself works.
                         */
                        (*tp->t_linesw->l_rint)(TTY_FE, tp);
-                       mutex_spin_enter(&tty_lock); /* XXX */
+                       ttylock(tp); /* XXX */
                        ttwakeup(tp);
-                       mutex_spin_exit(&tty_lock); /* XXX */
+                       ttyunlock(tp); /* XXX */
                        wakeup(tp);
                        break;
 



Home | Main Index | Thread Index | Old Index