Count clock interrupts.

This commit is contained in:
tsubai 1999-01-11 09:44:51 +00:00
parent 5042017dd3
commit c91ac313c1
2 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.3 1998/08/15 10:11:02 mycroft Exp $ */
/* $NetBSD: intr.h,v 1.4 1999/01/11 09:44:51 tsubai Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -36,8 +36,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _POWERMAC_INTR_H_
#define _POWERMAC_INTR_H_
#ifndef _MACPPC_INTR_H_
#define _MACPPC_INTR_H_
/* Interrupt priority `levels'. */
#define IPL_NONE 9 /* nothing */
@ -193,6 +193,14 @@ softintr(ipl)
#define setsoftnet() softintr(SIR_NET)
#define setsoftserial() softintr(SIR_SERIAL)
extern long intrcnt[];
#define CNT_IRQ0 0
#define CNT_CLOCK 64
#define CNT_SOFTCLOCK 65
#define CNT_SOFTNET 66
#define CNT_SOFTSERIAL 67
#endif /* !_LOCORE */
#endif /* !_POWERMAC_INTR_H_ */
#endif /* !_MACPPC_INTR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.6 1998/11/04 15:06:13 tsubai Exp $ */
/* $NetBSD: clock.c,v 1.7 1999/01/11 09:44:51 tsubai Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -142,7 +142,7 @@ decr_intr(frame)
#if defined(UVM)
uvmexp.intrs++;
#endif
/*intrcnt[CNT_CLOCK]++;*/
intrcnt[CNT_CLOCK]++;
{
int pri;
int msr;