Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/iq80310 move evcnt_attach_dynamic() calls la...



details:   https://anonhg.NetBSD.org/src/rev/c94952d02c1b
branches:  trunk
changeset: 780999:c94952d02c1b
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Aug 14 15:46:21 2012 +0000

description:
move evcnt_attach_dynamic() calls later to avoid assertions.

diffstat:

 sys/arch/evbarm/iq80310/iq80310_intr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2467525467b6 -r c94952d02c1b sys/arch/evbarm/iq80310/iq80310_intr.c
--- a/sys/arch/evbarm/iq80310/iq80310_intr.c    Tue Aug 14 15:17:53 2012 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.c    Tue Aug 14 15:46:21 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310_intr.c,v 1.30 2012/08/02 15:56:07 skrll Exp $  */
+/*     $NetBSD: iq80310_intr.c,v 1.31 2012/08/14 15:46:21 chs Exp $    */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.30 2012/08/02 15:56:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.31 2012/08/14 15:46:21 chs Exp $");
 
 #ifndef EVBARM_SPL_NOINLINE
 #define        EVBARM_SPL_NOINLINE
@@ -338,8 +338,6 @@
                TAILQ_INIT(&iq->iq_list);
 
                sprintf(iq->iq_name, "irq %d", i);
-               evcnt_attach_dynamic(&iq->iq_ev, EVCNT_TYPE_INTR,
-                   NULL, "iq80310", iq->iq_name);
        }
 
        iq80310_intr_calculate_masks();
@@ -379,6 +377,8 @@
        oldirqstate = disable_interrupts(I32_bit);
 
        TAILQ_INSERT_TAIL(&iq->iq_list, ih, ih_list);
+       evcnt_attach_dynamic(&iq->iq_ev, EVCNT_TYPE_INTR,
+           NULL, "iq80310", iq->iq_name);
 
        iq80310_intr_calculate_masks();
 



Home | Main Index | Thread Index | Old Index