Module Name: src
Committed By: riastradh
Date: Thu Oct 6 19:59:35 UTC 2022
Modified Files:
src/sys/dev: cons.c
Log Message:
console(4), constty(4): Rip off the kernel lock, take two.
To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/dev/cons.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/cons.c
diff -u src/sys/dev/cons.c:1.87 src/sys/dev/cons.c:1.88
--- src/sys/dev/cons.c:1.87 Thu Oct 6 19:58:41 2022
+++ src/sys/dev/cons.c Thu Oct 6 19:59:35 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: cons.c,v 1.87 2022/10/06 19:58:41 riastradh Exp $ */
+/* $NetBSD: cons.c,v 1.88 2022/10/06 19:59:35 riastradh Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.87 2022/10/06 19:58:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.88 2022/10/06 19:59:35 riastradh Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -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;