summaryrefslogtreecommitdiff
path: root/sys/arch/solbourne
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-05-11 00:12:45 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-05-11 00:12:45 +0000
commitf60df8ac75f7e301524e7602c568f8f572c38322 (patch)
tree4d531fb1f4f204459ceb6c092e225c85f30e28ae /sys/arch/solbourne
parentf8ea8928cfa6faf8b5682dc020c21fe7bbb5d6c2 (diff)
Move the increment of uvmexp.softs back to the caller of mi_ast():
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
Diffstat (limited to 'sys/arch/solbourne')
-rw-r--r--sys/arch/solbourne/solbourne/trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/solbourne/solbourne/trap.c b/sys/arch/solbourne/solbourne/trap.c
index 76ac5f739a4..d50588dff5e 100644
--- a/sys/arch/solbourne/solbourne/trap.c
+++ b/sys/arch/solbourne/solbourne/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.20 2014/05/10 05:33:00 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.21 2014/05/11 00:12:44 guenther Exp $ */
/* OpenBSD: trap.c,v 1.42 2004/12/06 20:12:25 miod Exp */
/*
@@ -308,6 +308,7 @@ trap(type, psr, pc, tf)
case T_AST:
want_ast = 0;
+ uvmexp.softs++;
mi_ast(p, want_resched);
break;