summaryrefslogtreecommitdiff
path: root/sys/arch/i386/i386/softintr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/i386/softintr.c')
-rw-r--r--sys/arch/i386/i386/softintr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/softintr.c b/sys/arch/i386/i386/softintr.c
index 4a9a65a04d4..1c2f9dde53d 100644
--- a/sys/arch/i386/i386/softintr.c
+++ b/sys/arch/i386/i386/softintr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softintr.c,v 1.3 2009/04/19 17:50:18 oga Exp $ */
+/* $OpenBSD: softintr.c,v 1.4 2009/04/19 19:13:57 oga Exp $ */
/* $NetBSD: softintr.c,v 1.1 2003/02/26 21:26:12 fvdl Exp $ */
/*-
@@ -88,9 +88,11 @@ softintr_dispatch(int which)
}
TAILQ_REMOVE(&si->softintr_q, sih, sih_q);
sih->sih_pending = 0;
- mtx_leave(&si->softintr_lock);
uvmexp.softs++;
+
+ mtx_leave(&si->softintr_lock);
+
(*sih->sih_fn)(sih->sih_arg);
}
}