summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-10-26 23:47:55 +0000
committerriastradh <riastradh@NetBSD.org>2022-10-26 23:47:55 +0000
commit6ab6012c7a4db6037eb6003034e8489bfbb35524 (patch)
tree55afb1073bccb44ac5ad296d9b63041105ab54cc /sys/dev
parent7c92946d21f7bfd202d278b9f1c2870f220edb44 (diff)
sunkbd(4): Convert to ttylock/ttyunlock.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sun/sunkbd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sun/sunkbd.c b/sys/dev/sun/sunkbd.c
index 8e38e2d3caa..efeef323d3e 100644
--- a/sys/dev/sun/sunkbd.c
+++ b/sys/dev/sun/sunkbd.c
@@ -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 *k, int c)
{
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);
}