diff options
author | sam <sam@FreeBSD.org> | 2003-11-05 23:42:51 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-05 23:42:51 +0000 |
commit | 0927f68a4503fa8ab92003e394032c483b3c32c5 (patch) | |
tree | 2123cf5ccfc35f8e4b70b2c2a96394a1aba17b84 /sys/kern | |
parent | 09e99681c0a5abf9fd6d76407d5adb96f3d3c96e (diff) | |
download | FreeBSD-src-0927f68a4503fa8ab92003e394032c483b3c32c5.zip FreeBSD-src-0927f68a4503fa8ab92003e394032c483b3c32c5.tar.gz |
o make debug_mpsafenet globally visible
o move it from subr_bus.c to netisr.c where it more properly belongs
o add NET_PICKUP_GIANT and NET_DROP_GIANT macros that will be used to
grab Giant as needed when MPSAFE operation is enabled
Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_bus.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c index 347489f..092f410 100644 --- a/sys/kern/subr_bus.c +++ b/sys/kern/subr_bus.c @@ -2133,16 +2133,6 @@ bus_release_resource(device_t dev, int type, int rid, struct resource *r) return (BUS_RELEASE_RESOURCE(dev->parent, dev, type, rid, r)); } -/* - * XXX this is a temporary measure to allow folks to - * XXX disable INTR_MPSAFE in network drivers without - * XXX recompiling--in case of problems. - */ -int debug_mpsafenet = 0; -TUNABLE_INT("debug.mpsafenet", &debug_mpsafenet); -SYSCTL_INT(_debug, OID_AUTO, mpsafenet, CTLFLAG_RW, &debug_mpsafenet, 0, - "Enable/disable MPSAFE network support"); - int bus_setup_intr(device_t dev, struct resource *r, int flags, driver_intr_t handler, void *arg, void **cookiep) |