Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 Don't attach same ivec's event cout...



details:   https://anonhg.NetBSD.org/src/rev/e573e60353aa
branches:  trunk
changeset: 767692:e573e60353aa
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Wed Jul 27 21:50:16 2011 +0000

description:
Don't attach same ivec's event coutner more than once.  They are
difficult to distinguish since they are handled by intr_list_handler.

diffstat:

 sys/arch/sparc64/sparc64/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b853dbbda61 -r e573e60353aa sys/arch/sparc64/sparc64/intr.c
--- a/sys/arch/sparc64/sparc64/intr.c   Wed Jul 27 20:07:49 2011 +0000
+++ b/sys/arch/sparc64/sparc64/intr.c   Wed Jul 27 21:50:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.64 2011/07/20 12:06:00 macallan Exp $ */
+/*     $NetBSD: intr.c,v 1.65 2011/07/27 21:50:16 nakayama Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.64 2011/07/20 12:06:00 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.65 2011/07/27 21:50:16 nakayama Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -186,7 +186,7 @@
         * a counter for it or it's something special like psycho's error
         * interrupts
         */
-       if (ih->ih_ivec != 0) {
+       if (ih->ih_ivec != 0 && intrlev[ih->ih_number] == NULL) {
                snprintf(ih->ih_name, sizeof(ih->ih_name), "%x", ih->ih_ivec);
                evcnt_attach_dynamic(&ih->ih_cnt, EVCNT_TYPE_INTR,
                    &intr_evcnts[level], "ivec", ih->ih_name);



Home | Main Index | Thread Index | Old Index