Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen increment couters at the right place, so th...
details: https://anonhg.NetBSD.org/src/rev/a9ce419ba122
branches: trunk
changeset: 574755:a9ce419ba122
user: bouyer <bouyer%NetBSD.org@localhost>
date: Fri Mar 11 15:48:40 2005 +0000
description:
increment couters at the right place, so that deffered interrupts are
accounted too.
diffstat:
sys/arch/xen/xen/evtchn.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d12a66a171ac -r a9ce419ba122 sys/arch/xen/xen/evtchn.c
--- a/sys/arch/xen/xen/evtchn.c Fri Mar 11 15:47:27 2005 +0000
+++ b/sys/arch/xen/xen/evtchn.c Fri Mar 11 15:48:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evtchn.c,v 1.2 2005/03/09 22:39:21 bouyer Exp $ */
+/* $NetBSD: evtchn.c,v 1.3 2005/03/11 15:48:40 bouyer Exp $ */
/*
*
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.2 2005/03/09 22:39:21 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.3 2005/03/11 15:48:40 bouyer Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -184,6 +184,8 @@
hypervisor_enable_irq(irq);
return 0;
}
+ uvmexp.intrs++;
+ ci->ci_isources[irq]->is_evcnt.ev_count++;
ilevel = ci->ci_ilevel;
if (ci->ci_isources[irq]->is_maxlevel <= ilevel) {
#ifdef IRQ_DEBUG
@@ -195,8 +197,6 @@
/* leave masked */
return 0;
}
- uvmexp.intrs++;
- ci->ci_isources[irq]->is_evcnt.ev_count++;
ci->ci_ilevel = ci->ci_isources[irq]->is_maxlevel;
/* sti */
ci->ci_idepth++;
Home |
Main Index |
Thread Index |
Old Index