From owner-p4-projects@FreeBSD.ORG Fri Apr 16 12:20:48 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C71FD16A4D0; Fri, 16 Apr 2004 12:20:47 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E72716A4CF for ; Fri, 16 Apr 2004 12:20:47 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F7F43D1F for ; Fri, 16 Apr 2004 12:20:47 -0700 (PDT) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3GJKlGe023401 for ; Fri, 16 Apr 2004 12:20:47 -0700 (PDT) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3GJKkaI023398 for perforce@freebsd.org; Fri, 16 Apr 2004 12:20:47 -0700 (PDT) (envelope-from jhb@freebsd.org) Date: Fri, 16 Apr 2004 12:20:47 -0700 (PDT) Message-Id: <200404161920.i3GJKkaI023398@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Subject: PERFORCE change 51187 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 19:20:48 -0000 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++;