From cf92e6837fc34745cc7b36d6da641a4a7dcc9d4e Mon Sep 17 00:00:00 2001 From: Martin Reindl Date: Sun, 29 Jan 2006 10:47:36 +0000 Subject: 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 --- sys/arch/alpha/include/intr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/alpha/include/intr.h') 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 *, -- cgit v1.2.3