summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-14 11:36:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-14 11:36:17 +0000
commitc1f986a719a33e017e7e2412f89fc729f30d428b (patch)
tree9d3928d5120c0fd26ca0738fa9833d0f02235392 /sys/arch/macppc/dev
parent4e1f856ff7193e68d6e8ce9bce3d382eeb9c467e (diff)
Do not forget to count interrupts if they have been delayed; ok drahn@
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/openpic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c
index 591054441d5..68c17a1b1d4 100644
--- a/sys/arch/macppc/dev/openpic.c
+++ b/sys/arch/macppc/dev/openpic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openpic.c,v 1.27 2004/06/28 02:49:10 aaron Exp $ */
+/* $OpenBSD: openpic.c,v 1.28 2004/07/14 11:36:16 miod Exp $ */
/*-
* Copyright (c) 1995 Per Fogelstrom
@@ -462,7 +462,8 @@ openpic_do_pending_int()
hwpend &= ~(1L << irq);
ih = o_intrhand[irq];
while(ih) {
- (*ih->ih_fun)(ih->ih_arg);
+ if ((*ih->ih_fun)(ih->ih_arg))
+ ih->ih_count.ec_count++;
ih = ih->ih_next;
}
}