From 769e0f974d8929599ba599ac496510fffc90ff34 Mon Sep 17 00:00:00 2001 From: jasone Date: Thu, 7 Sep 2000 01:33:02 +0000 Subject: Major update to the way synchronization is done in the kernel. Highlights include: * Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The alpha port is still in transition and currently uses both.) * Per-CPU idle processes. * Interrupts are run in their own separate kernel threads and can be preempted (i386 only). Partially contributed by: BSDi (BSD/OS) Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh --- sys/netgraph/ng_tty.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'sys/netgraph/ng_tty.c') diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c index ef2cc5d..70f9fb3 100644 --- a/sys/netgraph/ng_tty.c +++ b/sys/netgraph/ng_tty.c @@ -77,6 +77,7 @@ #include #ifdef __i386__ /* fiddle with the spl locking */ +#include #include #include #endif @@ -660,19 +661,6 @@ ngt_mod_event(module_t mod, int event, void *data) switch (event) { case MOD_LOAD: -#ifdef __i386__ - /* Insure the soft net "engine" can't run during spltty code */ - s = splhigh(); - tty_imask |= softnet_imask; /* spltty() block spl[soft]net() */ - net_imask |= softtty_imask; /* splimp() block splsofttty() */ - net_imask |= tty_imask; /* splimp() block spltty() */ - update_intr_masks(); - splx(s); - - if (bootverbose) - log(LOG_DEBUG, "new masks: bio %x, tty %x, net %x\n", - bio_imask, tty_imask, net_imask); -#endif /* Register line discipline */ s = spltty(); -- cgit v1.1