PERFORCE change 51187 for review
John Baldwin
jhb at FreeBSD.org
Fri Apr 16 12:20:48 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=51187
Change 51187 by jhb at jhb_slimer on 2004/04/16 12:20:09
Wrap for 80 cols.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_intr.c#43 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_intr.c#43 (text+ko) ====
@@ -74,8 +74,9 @@
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 interrupt storm protection is enabled.");
+SYSCTL_INT(_hw, OID_AUTO, intr_storm_threshold, CTLFLAG_RW,
+ &intr_storm_threshold, 0,
+ "Number of consecutive interrupts before storm protection is enabled.");
u_char
ithread_priority(enum intr_type flags)
@@ -532,17 +533,19 @@
atomic_store_rel_int(&ithd->it_need, 0);
/*
- * If we detect an interrupt storm, pause with the source masked
- * for 1/10th of a second.
+ * If we detect an interrupt storm, pause with
+ * the source masked for 1/10th of a second.
*/
- if (intr_storm_threshold != 0 && count >= intr_storm_threshold) {
+ if (intr_storm_threshold != 0 && count >=
+ 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", hz / 10);
+ tsleep(&count, td->td_priority, "throttle",
+ hz / 10);
count = 0;
} else
count++;
More information about the p4-projects
mailing list