diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2006-01-29 10:47:36 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2006-01-29 10:47:36 +0000 |
commit | cf92e6837fc34745cc7b36d6da641a4a7dcc9d4e (patch) | |
tree | 737efdccd68c559927f2d763383bd5c0fa53265a /sys/arch/alpha/pci/pci_kn20aa.c | |
parent | 3d76b07b9d92efa127be76a0c31dde39d891a633 (diff) |
Add a alpha_shared_intr_reset_strays() function that resets the stray
interrupt counter for a given shared interrupt descriptor.
When an interrupt is successfully handled, reset the strays counter,
thus preventing a "slow leak" from eventually shutting off the interrupt
vector.
from NetBSD via KUDO Takashi
Diffstat (limited to 'sys/arch/alpha/pci/pci_kn20aa.c')
-rw-r--r-- | sys/arch/alpha/pci/pci_kn20aa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/alpha/pci/pci_kn20aa.c b/sys/arch/alpha/pci/pci_kn20aa.c index ba6eb7fd1cc..e9b39642e39 100644 --- a/sys/arch/alpha/pci/pci_kn20aa.c +++ b/sys/arch/alpha/pci/pci_kn20aa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_kn20aa.c,v 1.20 2004/06/28 02:28:43 aaron Exp $ */ +/* $OpenBSD: pci_kn20aa.c,v 1.21 2006/01/29 10:47:35 martin Exp $ */ /* $NetBSD: pci_kn20aa.c,v 1.21 1996/11/17 02:05:27 cgd Exp $ */ /* @@ -257,7 +257,8 @@ kn20aa_iointr(framep, vec) if (kn20aa_pci_intr[irq].intr_nstrays == kn20aa_pci_intr[irq].intr_maxstrays) kn20aa_disable_intr(irq); - } + } else + alpha_shared_intr_reset_strays(kn20aa_pci_intr, irq); return; } #if NSIO |