Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_intr.c
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
struct intr_event *clk_intr_event; | struct intr_event *clk_intr_event; | ||||
struct intr_event *tty_intr_event; | struct intr_event *tty_intr_event; | ||||
void *vm_ih; | void *vm_ih; | ||||
struct proc *intrproc; | struct proc *intrproc; | ||||
static MALLOC_DEFINE(M_ITHREAD, "ithread", "Interrupt Threads"); | static MALLOC_DEFINE(M_ITHREAD, "ithread", "Interrupt Threads"); | ||||
static int intr_storm_threshold = 1000; | static int intr_storm_threshold = 0; | ||||
SYSCTL_INT(_hw, OID_AUTO, intr_storm_threshold, CTLFLAG_RWTUN, | SYSCTL_INT(_hw, OID_AUTO, intr_storm_threshold, CTLFLAG_RWTUN, | ||||
&intr_storm_threshold, 0, | &intr_storm_threshold, 0, | ||||
"Number of consecutive interrupts before storm protection is enabled"); | "Number of consecutive interrupts before storm protection is enabled"); | ||||
static TAILQ_HEAD(, intr_event) event_list = | static TAILQ_HEAD(, intr_event) event_list = | ||||
TAILQ_HEAD_INITIALIZER(event_list); | TAILQ_HEAD_INITIALIZER(event_list); | ||||
static struct mtx event_lock; | static struct mtx event_lock; | ||||
MTX_SYSINIT(intr_event_list, &event_lock, "intr event list", MTX_DEF); | MTX_SYSINIT(intr_event_list, &event_lock, "intr event list", MTX_DEF); | ||||
▲ Show 20 Lines • Show All 1,526 Lines • Show Last 20 Lines |