diff options
author | bde <bde@FreeBSD.org> | 2004-04-17 02:46:05 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2004-04-17 02:46:05 +0000 |
commit | 62ea68b046429981e3ba52172a7541ef439be988 (patch) | |
tree | 0cb949dd4bad15d02f0ffc9746283860b32de519 /sys/kern | |
parent | 8f1eb09821df19d6b6a08ff5a024611d44be3d11 (diff) | |
download | FreeBSD-src-62ea68b046429981e3ba52172a7541ef439be988.zip FreeBSD-src-62ea68b046429981e3ba52172a7541ef439be988.tar.gz |
Fixed some style bugs in previous commit (mainly an insertion sort error
for declarations, and poorly worded messages).
Fixed some nearby style bugs (unsorted declarations).
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_intr.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index add1162..354fba3 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -61,22 +61,22 @@ struct int_entropy { uintptr_t vector; }; -void *vm_ih; -void *softclock_ih; struct ithd *clk_ithd; struct ithd *tty_ithd; +void *softclock_ih; +void *vm_ih; static MALLOC_DEFINE(M_ITHREAD, "ithread", "Interrupt Threads"); -static void ithread_update(struct ithd *); -static void ithread_loop(void *); -static void start_softintr(void *); - static int intr_storm_threshold = 500; TUNABLE_INT("hw.intr_storm_threshold", &intr_storm_threshold); SYSCTL_INT(_hw, OID_AUTO, intr_storm_threshold, CTLFLAG_RW, &intr_storm_threshold, 0, - "Number of consecutive interrupts before storm protection is enabled."); + "Number of consecutive interrupts before storm protection is enabled"); + +static void ithread_loop(void *); +static void ithread_update(struct ithd *); +static void start_softintr(void *); u_char ithread_priority(enum intr_type flags) @@ -540,15 +540,16 @@ ithread_loop(void *arg) intr_storm_threshold) { if (!warned) { printf( - "Interrupt storm detected on \"%s\", throttling interrupt source\n", + "Interrupt storm detected on \"%s\"; throttling interrupt source\n", p->p_comm); warned = 1; } - tsleep(&count, td->td_priority, "throttle", + tsleep(&count, td->td_priority, "istorm", hz / 10); count = 0; } else count++; + restart: TAILQ_FOREACH(ih, &ithd->it_handlers, ih_next) { if (ithd->it_flags & IT_SOFT && !ih->ih_need) |