diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-10-25 23:21:33 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-10-25 23:21:33 +0000 |
| commit | fdba03e636e923717d3dbb9ff1aed11583aff144 (patch) | |
| tree | 6d0084a29358fa523850a88a7b7b49fbfd0d8434 /sys/dev | |
| parent | 8f1a459ad848e75041517312841915c434d56083 (diff) | |
console(4), constty(4): Rip off the kernel lock, take three.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/cons.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/cdefs.h> -__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 <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; |
