From: mickey Date: Fri, 19 Apr 1996 05:41:52 +0000 (+0000) Subject: Fix intrstray a bit again. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2a901d0a19a539a9e596c1a85dade9c308a62d2e;p=openbsd Fix intrstray a bit again. --- diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c index 98be314a8c0..f37de38ba63 100644 --- a/sys/arch/i386/isa/isa_machdep.c +++ b/sys/arch/i386/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.10 1996/04/18 17:12:16 niklas Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.11 1996/04/19 05:41:52 mickey Exp $ */ /* $NetBSD: isa_machdep.c,v 1.11 1996/02/28 01:49:35 cgd Exp $ */ /*- @@ -125,19 +125,15 @@ void isa_strayintr(irq) int irq; { - static u_long strays; - - intrstray[irq]++; - /* * Stray interrupts on irq 7 occur when an interrupt line is raised * and then lowered before the CPU acknowledges it. This generally * means either the device is screwed or something is cli'ing too * long and it's timing out. */ - if (++strays <= 5) + if (++intrstray[irq] <= 5) log(LOG_ERR, "stray interrupt %d%s\n", irq, - strays >= 5 ? "; stopped logging" : ""); + intrstray[irq] >= 5 ? "; stopped logging" : ""); } int fastvec;