diff options
author | jasone <jasone@FreeBSD.org> | 2000-09-07 01:33:02 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2000-09-07 01:33:02 +0000 |
commit | 769e0f974d8929599ba599ac496510fffc90ff34 (patch) | |
tree | 9387522900085835de81e7830e570ef3f6b3ea80 /sys/netgraph | |
parent | acf1927de02afda4855ec278b1128fd9446405ea (diff) | |
download | FreeBSD-src-769e0f974d8929599ba599ac496510fffc90ff34.zip FreeBSD-src-769e0f974d8929599ba599ac496510fffc90ff34.tar.gz |
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
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_tty.c | 14 |
1 files changed, 1 insertions, 13 deletions
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 <netgraph/ng_tty.h> #ifdef __i386__ /* fiddle with the spl locking */ +#include <sys/bus.h> #include <machine/ipl.h> #include <i386/isa/intr_machdep.h> #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(); |