Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Small tweaks for preemption.
details: https://anonhg.NetBSD.org/src/rev/b9d82ba49e77
branches: trunk
changeset: 337267:b9d82ba49e77
user: matt <matt%NetBSD.org@localhost>
date: Wed Apr 08 16:37:32 2015 +0000
description:
Small tweaks for preemption.
diffstat:
sys/arch/arm/arm/arm_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r efcad13ae834 -r b9d82ba49e77 sys/arch/arm/arm/arm_machdep.c
--- a/sys/arch/arm/arm/arm_machdep.c Wed Apr 08 15:49:46 2015 +0000
+++ b/sys/arch/arm/arm/arm_machdep.c Wed Apr 08 16:37:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm_machdep.c,v 1.44 2015/04/08 07:29:44 matt Exp $ */
+/* $NetBSD: arm_machdep.c,v 1.45 2015/04/08 16:37:32 matt Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.44 2015/04/08 07:29:44 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.45 2015/04/08 16:37:32 matt Exp $");
#include <sys/exec.h>
#include <sys/proc.h>
@@ -266,7 +266,7 @@
#ifdef __HAVE_PREEMPTION
atomic_or_uint(&l->l_dopreempt, DOPREEMPT_ACTIVE);
if (ci == cur_ci) {
- softint_trigger(SOFTINT_KPREEMPT);
+ ci->ci_astpending |= 2;
} else {
ipi = IPI_KPREEMPT;
goto send_ipi;
@@ -274,7 +274,7 @@
#endif /* __HAVE_PREEMPTION */
return;
}
- ci->ci_astpending = 1;
+ ci->ci_astpending |= 1;
#ifdef MULTIPROCESSOR
if (ci == curcpu() || !immed)
return;
Home |
Main Index |
Thread Index |
Old Index