Add a intrmask_t pointer to register_int() and register_swi(), and make
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 1 Feb 2005 22:41:31 +0000 (22:41 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 1 Feb 2005 22:41:31 +0000 (22:41 +0000)
commit45d76888b9cf73710389a66ed921e1aa532c6c02
treecb09da2ef6df9bc0ab73f14f50b2f3697c8258db
parentc76c4607e00dc9c3f93620a6a364438b569217dc
Add a intrmask_t pointer to register_int() and register_swi(), and make
the interrupt thread loop set the spl for the duration of the call to the
handler.

Allow interrupt threads to be run with or without a critical section based
on the kern.int_use_crit_section sysctl.  The default is to conservatively
run with a critical section for now.

Turning this off will cause cpu usage in interrupts to be properly accounted
for by top, systat, and ps.
15 files changed:
sys/bus/cam/cam_xpt.c
sys/dev/serial/cy/cy.c
sys/dev/serial/rc/rc.c
sys/dev/serial/sio/sio.c
sys/i386/i386/vm_machdep.c
sys/i386/isa/intr_machdep.c
sys/i386/isa/intr_machdep.h
sys/kern/kern_intr.c
sys/kern/subr_taskqueue.c
sys/opencrypto/crypto.c
sys/platform/pc32/i386/vm_machdep.c
sys/platform/pc32/isa/intr_machdep.c
sys/platform/pc32/isa/intr_machdep.h
sys/sys/interrupt.h
sys/sys/systm.h