diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-19 05:41:53 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-19 05:41:53 +0000 |
commit | f490b3554888e63ba6583bec49722868bd9a0ad2 (patch) | |
tree | 5e4aa86b3df0cc89f0b77aaec968437eb41ff988 /sys | |
parent | a1f1f80c1f8fb020ab949e2a48cc549898b0cc21 (diff) |
Fix intrstray a bit again.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/isa/isa_machdep.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; |