From 0330d467c5d5654526bf0e8d6141cf8d59a148ed Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 24 Dec 2006 20:29:20 +0000 Subject: Check for want_resched when processing AST and nowhere else. But then, when doing so, do not check for signals - userret() will do this. --- sys/arch/i386/i386/trap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 7392782d26a..1a293e75e86 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.78 2006/09/19 11:06:33 jsg Exp $ */ +/* $OpenBSD: trap.c,v 1.79 2006/12/24 20:29:19 miod Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -409,6 +409,8 @@ trap(struct trapframe frame) ADDUPROF(p); KERNEL_PROC_UNLOCK(p); } + if (want_resched) + preempt(NULL); goto out; case T_DNA|T_USER: { -- cgit v1.2.3