aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-10-12 16:36:08 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-10-19 13:46:46 +0000
commitb34de75d61c29e047fc6beaa04f99f96ec64de8a (patch)
tree7a1feb7368dca30497c539012cce546d563e1bcd /sys/dev/uart
parent76366ad0257a24c142d18a53ccacd08c23721ae7 (diff)
Downgrade tty_intr_event from a global
It can be static within uart_tty.c. It is an open question whether there remains any real benefit to having uart instances share a swi thread. Reviewed by: imp, markj, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36938 (cherry picked from commit 05b727fee550598bfae5754783f9decfdeeb3c3d)
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_tty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index ad7052289f0b..482a392cdb27 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -77,6 +77,9 @@ CONSOLE_DRIVER(
static struct uart_devinfo uart_console;
+/* TTY swi(9) event. Allows all uart soft handlers to share one ithread. */
+static struct intr_event *tty_intr_event;
+
static void
uart_cnprobe(struct consdev *cp)
{