Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 attach just one of the cpu timer interrupts...
details: https://anonhg.NetBSD.org/src/rev/d2371bbc3544
branches: trunk
changeset: 755711:d2371bbc3544
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Jun 17 06:40:28 2010 +0000
description:
attach just one of the cpu timer interrupts as EVCNT_TYPE_INTR, so that at
least something shows up in systat and beyond. myself, and a few others,
have been confused at the lack of any timer interrupts appearing here.
diffstat:
sys/arch/x86/x86/intr.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r e5d72bbb79cc -r d2371bbc3544 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c Thu Jun 17 06:38:19 2010 +0000
+++ b/sys/arch/x86/x86/intr.c Thu Jun 17 06:40:28 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.67 2010/02/24 21:22:01 dyoung Exp $ */
+/* $NetBSD: intr.c,v 1.68 2010/06/17 06:40:28 mrg Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.67 2010/02/24 21:22:01 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.68 2010/06/17 06:40:28 mrg Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@@ -983,6 +983,7 @@
struct intrsource *isp;
#if NLAPIC > 0 && defined(MULTIPROCESSOR)
int i;
+ static int first = 1;
#endif
#ifdef INTRSTACKSIZE
vaddr_t istack;
@@ -997,8 +998,10 @@
isp->is_handlers = &fake_timer_intrhand;
isp->is_pic = &local_pic;
ci->ci_isources[LIR_TIMER] = isp;
- evcnt_attach_dynamic(&isp->is_evcnt, EVCNT_TYPE_MISC, NULL,
+ evcnt_attach_dynamic(&isp->is_evcnt,
+ first ? EVCNT_TYPE_INTR : EVCNT_TYPE_MISC, NULL,
device_xname(ci->ci_dev), "timer");
+ first = 0;
#ifdef MULTIPROCESSOR
isp = kmem_zalloc(sizeof(*isp), KM_SLEEP);
Home |
Main Index |
Thread Index |
Old Index