diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:29:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-12-24 20:29:20 +0000 |
commit | 0330d467c5d5654526bf0e8d6141cf8d59a148ed (patch) | |
tree | 9f13e3cb00acf1e51b34160c6fcf200312939bf8 /sys/arch/hppa | |
parent | 0ece0a5e4e73b44f42815ab3f5f0bc9f7e3bb7c8 (diff) |
Check for want_resched when processing AST and nowhere else. But then, when
doing so, do not check for signals - userret() will do this.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index f54757ea251..783c12cd628 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.93 2005/12/12 18:59:02 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.94 2006/12/24 20:29:17 miod Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -146,14 +146,8 @@ userret(struct proc *p, register_t pc, u_quad_t oticks) p->p_flag &= ~P_OWEUPC; ADDUPROF(p); } - } - if (want_resched) { - /* - * We're being preempted. - */ - preempt(NULL); - while ((sig = CURSIG(p)) != 0) - postsig(sig); + if (want_resched) + preempt(NULL); } /* |