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/include/intr.h | |
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/include/intr.h')
-rw-r--r-- | sys/arch/alpha/include/intr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h index ca437f2b76f..ea5b7d5c697 100644 --- a/sys/arch/alpha/include/intr.h +++ b/sys/arch/alpha/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.20 2005/04/19 15:29:47 mickey Exp $ */ +/* $OpenBSD: intr.h,v 1.21 2006/01/29 10:47:35 martin Exp $ */ /* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */ /*- @@ -242,6 +242,8 @@ void alpha_shared_intr_set_dfltsharetype(struct alpha_shared_intr *, unsigned int, int); void alpha_shared_intr_set_maxstrays(struct alpha_shared_intr *, unsigned int, int); +void alpha_shared_intr_reset_strays(struct alpha_shared_intr *, + unsigned int); void alpha_shared_intr_stray(struct alpha_shared_intr *, unsigned int, const char *); void alpha_shared_intr_set_private(struct alpha_shared_intr *, |