Module Name: src
Committed By: riastradh
Date: Wed Oct 26 23:47:55 UTC 2022
Modified Files:
src/sys/dev/sun: sunkbd.c
Log Message:
sunkbd(4): Convert to ttylock/ttyunlock.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/sun/sunkbd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/sun/sunkbd.c
diff -u src/sys/dev/sun/sunkbd.c:1.31 src/sys/dev/sun/sunkbd.c:1.32
--- src/sys/dev/sun/sunkbd.c:1.31 Sun Sep 25 21:30:29 2022
+++ src/sys/dev/sun/sunkbd.c Wed Oct 26 23:47:55 2022
@@ -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 @@ sunkbd_write_data(struct kbd_sun_softc *
{
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);
}