diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-10 05:33:01 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-05-10 05:33:01 +0000 |
commit | b12870a5d75b3e82406ba541feec0aeaf9f19a2e (patch) | |
tree | cdfdb3d18e1b9828c390564327c4d4374a3351dd /sys/arch/hppa | |
parent | dfeb688a946a2b27fde19e82f8a8e80020a07e6c (diff) |
Factor out the common ast bits into mi_ast()
ok deraadt@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 1b5e34c678a..130c9f1f350 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.131 2014/05/08 21:32:45 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.132 2014/05/10 05:33:00 guenther Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -139,14 +139,7 @@ ast(struct proc *p) { if (p->p_md.md_astpending) { p->p_md.md_astpending = 0; - uvmexp.softs++; - if (p->p_flag & P_OWEUPC) { - KERNEL_LOCK(); - ADDUPROF(p); - KERNEL_UNLOCK(); - } - if (curcpu()->ci_want_resched) - preempt(NULL); + mi_ast(p, curcpu()->ci_want_resched); } } |