summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
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/hppa
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/hppa')
-rw-r--r--sys/arch/hppa/hppa/trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c
index 0278efc9211..72f261b43b4 100644
--- a/sys/arch/hppa/hppa/trap.c
+++ b/sys/arch/hppa/hppa/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.133 2014/05/10 21:58:56 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.134 2014/05/11 00:12:44 guenther Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -139,6 +139,7 @@ ast(struct proc *p)
{
if (p->p_md.md_astpending) {
p->p_md.md_astpending = 0;
+ uvmexp.softs++;
mi_ast(p, curcpu()->ci_want_resched);
}