Date: Fri, 16 Apr 2004 12:20:47 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 51187 for review Message-ID: <200404161920.i3GJKkaI023398@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=51187 Change 51187 by jhb@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++;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404161920.i3GJKkaI023398>