Module Name: src
Committed By: nakayama
Date: Thu Jun 23 13:39:40 UTC 2011
Modified Files:
src/sys/arch/sparc64/sparc64: trap.c
Log Message:
No need to repeat checking want_resched then call preempt() in
T_AST case, so check it only once.
To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/arch/sparc64/sparc64/trap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.165 src/sys/arch/sparc64/sparc64/trap.c:1.166
--- src/sys/arch/sparc64/sparc64/trap.c:1.165 Fri Jan 14 02:06:32 2011
+++ src/sys/arch/sparc64/sparc64/trap.c Thu Jun 23 13:39:40 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.165 2011/01/14 02:06:32 rmind Exp $ */
+/* $NetBSD: trap.c,v 1.166 2011/06/23 13:39:40 nakayama Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.165 2011/01/14 02:06:32 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.166 2011/06/23 13:39:40 nakayama Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -608,13 +608,13 @@
#endif
case T_AST:
+ want_ast = 0;
if (l->l_pflag & LP_OWEUPC) {
l->l_pflag &= ~LP_OWEUPC;
ADDUPROF(l);
}
- while (want_resched)
+ if (want_resched)
preempt();
- want_ast = 0;
break;
case T_ILLINST: