Source-Changes-HG archive

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

[src/trunk]: src/sys/dev console(4), constty(4): Rip off the kernel lock, tak...



details:   https://anonhg.NetBSD.org/src/rev/14bd5f9817c2
branches:  trunk
changeset: 371759:14bd5f9817c2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Oct 06 19:59:35 2022 +0000

description:
console(4), constty(4): Rip off the kernel lock, take two.

diffstat:

 sys/dev/cons.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b5376a130b6b -r 14bd5f9817c2 sys/dev/cons.c
--- a/sys/dev/cons.c    Thu Oct 06 19:58:41 2022 +0000
+++ b/sys/dev/cons.c    Thu Oct 06 19:59:35 2022 +0000
@@ -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 @@
        .d_mmap = nommap,
        .d_kqfilter = cnkqfilter,
        .d_discard = nodiscard,
-       .d_flag = D_TTY
+       .d_flag = D_TTY|D_MPSAFE,
 };
 
 static struct kmutex cn_lock;



Home | Main Index | Thread Index | Old Index