summaryrefslogtreecommitdiff
path: root/sys/dev/cons
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-09 22:12:38 -0400
committerIan Moffett <ian@osmora.org>2025-07-09 22:12:38 -0400
commit458d46e220e9428be7ec6c38b015f62d80e4cda9 (patch)
treeb4c99a54fd95cfdeaf03dfd45cf8d3077e08b6ed /sys/dev/cons
parent572ca55a850d8d3fdcf03c56c094b7cb65f675d0 (diff)
kernel: cons: Remove problematic lock
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/cons')
-rw-r--r--sys/dev/cons/cons.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/cons/cons.c b/sys/dev/cons/cons.c
index 7407ec1..88cbcbe 100644
--- a/sys/dev/cons/cons.c
+++ b/sys/dev/cons/cons.c
@@ -375,7 +375,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
}
cons_attach();
- spinlock_acquire(&g_root_scr.lock);
for (;;) {
/* Buffer too small */
if (n == 0) {
@@ -392,7 +391,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
break;
}
}
- spinlock_release(&g_root_scr.lock);
return sio->len;
}