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/m88k | |
parent | dfeb688a946a2b27fde19e82f8a8e80020a07e6c (diff) |
Factor out the common ast bits into mi_ast()
ok deraadt@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index f73b801db0d..5426eea703a 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.91 2014/05/08 22:17:33 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.92 2014/05/10 05:33:00 guenther Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1998 Steve Murphree, Jr. @@ -205,16 +205,9 @@ ast(struct trapframe *frame) struct cpu_info *ci = curcpu(); struct proc *p = ci->ci_curproc; - uvmexp.softs++; p->p_md.md_astpending = 0; - if (p->p_flag & P_OWEUPC) { - KERNEL_LOCK(); - ADDUPROF(p); - KERNEL_UNLOCK(); - } - if (ci->ci_want_resched) - preempt(NULL); + mi_ast(p, ci->ci_want_resched); userret(p); } |