summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-20 06:33:49 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-20 06:33:49 +0000
commit3e3ff0cf0db089f1bc7cf6089dc74b51d0a3af70 (patch)
treefdd209a91e26cb3cbc1a90545f99b5db0880c7ce /sys/arch/sh
parentee9bd637e0295eeb7dfd37b2f3810841cbd814f7 (diff)
Get rid of evcount's support for arranging counters in a tree
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/interrupt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sh/sh/interrupt.c b/sys/arch/sh/sh/interrupt.c
index 17ff868bb6c..3aed3e0238a 100644
--- a/sys/arch/sh/sh/interrupt.c
+++ b/sys/arch/sh/sh/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.10 2009/04/19 18:54:06 oga Exp $ */
+/* $OpenBSD: interrupt.c,v 1.11 2010/09/20 06:33:47 matthew Exp $ */
/* $NetBSD: interrupt.c,v 1.18 2006/01/25 00:02:57 uwe Exp $ */
/*-
@@ -135,8 +135,7 @@ intc_intr_establish(int evtcode, int trigger, int level,
ih->ih_irq = evtcode >> 5;
ih->ih_name = name;
if (name)
- evcount_attach(&ih->ih_count, name, (void *)&ih->ih_irq,
- &evcount_intr);
+ evcount_attach(&ih->ih_count, name, &ih->ih_irq);
/* Map interrupt handler */
EVTCODE_TO_IH_INDEX(evtcode) = ih->ih_idx;