From fdba03e636e923717d3dbb9ff1aed11583aff144 Mon Sep 17 00:00:00 2001 From: riastradh Date: Tue, 25 Oct 2022 23:21:33 +0000 Subject: console(4), constty(4): Rip off the kernel lock, take three. --- sys/dev/cons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/cons.c b/sys/dev/cons.c index f2c59099b39..fd2a5b50750 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -1,4 +1,4 @@ -/* $NetBSD: cons.c,v 1.91 2022/10/25 23:21:13 riastradh Exp $ */ +/* $NetBSD: cons.c,v 1.92 2022/10/25 23:21:33 riastradh Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.91 2022/10/25 23:21:13 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.92 2022/10/25 23:21:33 riastradh Exp $"); #include #include @@ -84,7 +84,7 @@ const struct cdevsw cons_cdevsw = { .d_mmap = nommap, .d_kqfilter = cnkqfilter, .d_discard = nodiscard, - .d_flag = D_TTY + .d_flag = D_TTY|D_MPSAFE, }; static struct kmutex cn_lock; -- cgit