diff --git a/sys/arch/arc/arc/c_magnum.c b/sys/arch/arc/arc/c_magnum.c index bd53ce115103..ed04296208a5 100644 --- a/sys/arch/arc/arc/c_magnum.c +++ b/sys/arch/arc/arc/c_magnum.c @@ -1,4 +1,4 @@ -/* $NetBSD: c_magnum.c,v 1.9 2005/01/22 08:43:02 tsutsui Exp $ */ +/* $NetBSD: c_magnum.c,v 1.10 2005/08/20 17:58:49 tsutsui Exp $ */ /* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */ /* @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: c_magnum.c,v 1.9 2005/01/22 08:43:02 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: c_magnum.c,v 1.10 2005/08/20 17:58:49 tsutsui Exp $"); #include #include @@ -169,6 +169,7 @@ timer_magnum_intr(uint32_t mask, struct clockframe *cf) temp = inw(R4030_SYS_IT_STAT); hardclock(cf); + timer_jazzio_ev.ev_count++; /* Re-enable clock interrupts */ splx(MIPS_INT_MASK_4 | MIPS_SR_INT_IE); diff --git a/sys/arch/arc/arc/c_nec_jazz.c b/sys/arch/arc/arc/c_nec_jazz.c index 8b85b0289a3c..7fd486fe4ed0 100644 --- a/sys/arch/arc/arc/c_nec_jazz.c +++ b/sys/arch/arc/arc/c_nec_jazz.c @@ -1,4 +1,4 @@ -/* $NetBSD: c_nec_jazz.c,v 1.8 2005/01/22 08:43:02 tsutsui Exp $ */ +/* $NetBSD: c_nec_jazz.c,v 1.9 2005/08/20 17:58:49 tsutsui Exp $ */ /*- * Copyright (C) 2000 Shuichiro URATA. All rights reserved. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: c_nec_jazz.c,v 1.8 2005/01/22 08:43:02 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: c_nec_jazz.c,v 1.9 2005/08/20 17:58:49 tsutsui Exp $"); #include #include @@ -68,6 +68,7 @@ timer_nec_jazz_intr(uint32_t mask, struct clockframe *cf) temp = in32(RD94_SYS_INTSTAT3); hardclock(cf); + timer_jazzio_ev.ev_count++; /* Re-enable clock interrupts */ splx(MIPS_INT_MASK_3 | MIPS_SR_INT_IE); diff --git a/sys/arch/arc/jazz/timer_jazzio.c b/sys/arch/arc/jazz/timer_jazzio.c index 4fb7d0fb514c..9a42f4e7bd69 100644 --- a/sys/arch/arc/jazz/timer_jazzio.c +++ b/sys/arch/arc/jazz/timer_jazzio.c @@ -1,4 +1,4 @@ -/* $NetBSD: timer_jazzio.c,v 1.6 2005/01/22 07:35:34 tsutsui Exp $ */ +/* $NetBSD: timer_jazzio.c,v 1.7 2005/08/20 17:58:49 tsutsui Exp $ */ /* $OpenBSD: clock.c,v 1.6 1998/10/15 21:30:15 imp Exp $ */ /* @@ -80,7 +80,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: timer_jazzio.c,v 1.6 2005/01/22 07:35:34 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: timer_jazzio.c,v 1.7 2005/08/20 17:58:49 tsutsui Exp $"); #include #include @@ -116,6 +116,8 @@ struct timerfns timerfns_jazzio = { struct timer_jazzio_config *timer_jazzio_conf = NULL; int timer_jazzio_found = 0; +struct evcnt timer_jazzio_ev = + EVCNT_INITIALIZER(EVCNT_TYPE_INTR, NULL, "jazzio", "timer"); int timer_jazzio_match(struct device *parent, struct cfdata *match, void *aux) @@ -142,6 +144,7 @@ timer_jazzio_attach(struct device *parent, struct device *self, void *aux) printf("\n"); + evcnt_attach_static(&timer_jazzio_ev); (*platform->set_intr)(timer_jazzio_conf->tjc_intr_mask, timer_jazzio_conf->tjc_intr, 1); diff --git a/sys/arch/arc/jazz/timer_jazziovar.h b/sys/arch/arc/jazz/timer_jazziovar.h index 314a3b266eb7..e9ee79f97c00 100644 --- a/sys/arch/arc/jazz/timer_jazziovar.h +++ b/sys/arch/arc/jazz/timer_jazziovar.h @@ -1,4 +1,4 @@ -/* $NetBSD: timer_jazziovar.h,v 1.3 2005/01/22 08:43:02 tsutsui Exp $ */ +/* $NetBSD: timer_jazziovar.h,v 1.4 2005/08/20 17:58:49 tsutsui Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -43,3 +43,4 @@ struct timer_jazzio_config { }; extern struct timer_jazzio_config *timer_jazzio_conf; +extern struct evcnt timer_jazzio_ev;