Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 No need to repeat checking want_res...
details: https://anonhg.NetBSD.org/src/rev/960294186f57
branches: trunk
changeset: 766479:960294186f57
user: nakayama <nakayama%NetBSD.org@localhost>
date: Thu Jun 23 13:39:40 2011 +0000
description:
No need to repeat checking want_resched then call preempt() in
T_AST case, so check it only once.
diffstat:
sys/arch/sparc64/sparc64/trap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r a439a6997b66 -r 960294186f57 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c Thu Jun 23 12:40:32 2011 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c Thu Jun 23 13:39:40 2011 +0000
@@ -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:
Home |
Main Index |
Thread Index |
Old Index