summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-03-31 04:14:19 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-03-31 04:14:19 +0000
commit4c95de875faff8d2210f94140ef007efc25d0da9 (patch)
tree2606d38d8ed7f2a3318d29ce13a48b3bced64c8a /sys
parentc80b972a2eed5cc93d8669d251affb741e773ba3 (diff)
Count clock interrupts.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/clock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/clock.c b/sys/arch/powerpc/powerpc/clock.c
index 8ce5d57b888..a447e764dc4 100644
--- a/sys/arch/powerpc/powerpc/clock.c
+++ b/sys/arch/powerpc/powerpc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.6 2000/03/23 04:12:48 rahnds Exp $ */
+/* $OpenBSD: clock.c,v 1.7 2000/03/31 04:14:18 rahnds Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
@@ -36,6 +36,7 @@
#include <sys/kernel.h>
#include <machine/pio.h>
+#include <machine/intr.h>
#if 0
#include <powerpc/pci/mpc106reg.h>
@@ -186,6 +187,8 @@ decr_intr(frame)
if (!ticks_per_intr)
return;
+ intrcnt[PPC_CLK_IRQ]++;
+
/*
* Based on the actual time delay since the last decrementer reload,
* we arrange for earlier interrupt next time.