Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch __HAVE_PREEEMPTION -> __HAVE_PREEMPTION
details: https://anonhg.NetBSD.org/src/rev/60cde5c46045
branches: trunk
changeset: 337454:60cde5c46045
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Apr 14 22:36:53 2015 +0000
description:
__HAVE_PREEEMPTION -> __HAVE_PREEMPTION
diffstat:
sys/arch/aarch64/aarch64/cpu_machdep.c | 8 ++++----
sys/arch/arm/arm/ast.c | 10 +++++-----
sys/arch/arm/include/cpu.h | 2 +-
sys/arch/arm/pic/pic.c | 6 +++---
sys/arch/mips/mips/ipifuncs.c | 6 +++---
sys/arch/powerpc/booke/e500_intr.c | 6 +++---
6 files changed, 19 insertions(+), 19 deletions(-)
diffs (172 lines):
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/aarch64/aarch64/cpu_machdep.c
--- a/sys/arch/aarch64/aarch64/cpu_machdep.c Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/aarch64/aarch64/cpu_machdep.c Tue Apr 14 22:36:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_machdep.c,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: cpu_machdep.c,v 1.2 2015/04/14 22:36:54 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu_machdep.c,v 1.1 2014/08/10 05:47:37 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu_machdep.c,v 1.2 2015/04/14 22:36:54 jmcneill Exp $");
#include "opt_pic.h"
@@ -112,7 +112,7 @@
KASSERT((softints != 0) == ((ci->ci_softints >> opl) != 0));
KASSERT(opl == IPL_NONE || (softints & (1 << (opl - IPL_SOFTCLOCK))) == 0);
if (softints == 0) {
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
if (ci->ci_want_resched & RESCHED_KPREEMPT) {
ci->ci_want_resched &= ~RESCHED_KPREEMPT;
splsched();
@@ -332,7 +332,7 @@
KASSERT(curcpu()->ci_mtx_count == 0);
return true;
}
- atomic_or_uint(curcpu()->ci_want_resched, RESCHED_KPREEEMPT);
+ atomic_or_uint(curcpu()->ci_want_resched, RESCHED_KPREEMPT);
#endif
return false;
}
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/arm/arm/ast.c
--- a/sys/arch/arm/arm/ast.c Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/arm/arm/ast.c Tue Apr 14 22:36:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ast.c,v 1.26 2015/04/08 18:10:08 matt Exp $ */
+/* $NetBSD: ast.c,v 1.27 2015/04/14 22:36:53 jmcneill Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.26 2015/04/08 18:10:08 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.27 2015/04/14 22:36:53 jmcneill Exp $");
#include "opt_ddb.h"
@@ -123,7 +123,7 @@
KASSERT(VALID_R15_PSR(tf->tf_pc, tf->tf_spsr));
#endif
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
kpreempt_disable();
#endif
struct cpu_info * const ci = curcpu();
@@ -131,13 +131,13 @@
ci->ci_data.cpu_ntrap++;
KDASSERT(ci->ci_cpl == IPL_NONE);
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
atomic_and_uint(&ci->ci_astpending, ~__BIT(0));
#else
ci->ci_astpending = 0;
#endif
const int want_resched = ci->ci_want_resched;
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
kpreempt_enable();
#endif
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/arm/include/cpu.h Tue Apr 14 22:36:53 2015 +0000
@@ -219,7 +219,7 @@
}
#elif !defined(MULTIPROCESSOR)
#define curcpu() (&cpu_info_store)
-#elif !defined(__HAVE_PREEEMPTION)
+#elif !defined(__HAVE_PREEMPTION)
#error MULTIPROCESSOR && !__HAVE_PREEMPTION requires TPIDRPRW_IS_CURCPU or TPIDRPRW_IS_CURLWP
#else
#error MULTIPROCESSOR && __HAVE_PREEMPTION requires TPIDRPRW_IS_CURLWP
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/arm/pic/pic.c Tue Apr 14 22:36:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pic.c,v 1.32 2015/04/12 15:32:19 matt Exp $ */
+/* $NetBSD: pic.c,v 1.33 2015/04/14 22:36:54 jmcneill Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -33,7 +33,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.32 2015/04/12 15:32:19 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.33 2015/04/14 22:36:54 jmcneill Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -556,7 +556,7 @@
percpu_putref(pic_pending_percpu);
#endif
#endif /* __HAVE_PIC_PENDING_INTRS */
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
if (newipl == IPL_NONE && (ci->ci_astpending & __BIT(1))) {
pic_set_priority(ci, IPL_SCHED);
kpreempt(0);
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/mips/mips/ipifuncs.c
--- a/sys/arch/mips/mips/ipifuncs.c Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/mips/mips/ipifuncs.c Tue Apr 14 22:36:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.7 2014/05/19 22:47:53 rmind Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.8 2015/04/14 22:36:53 jmcneill Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.7 2014/05/19 22:47:53 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.8 2015/04/14 22:36:53 jmcneill Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -84,7 +84,7 @@
pmap_tlb_syncicache_wanted(ci);
}
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
static inline void
ipi_kpreempt(struct cpu_info *ci)
{
diff -r 5b0ebe4d53a1 -r 60cde5c46045 sys/arch/powerpc/booke/e500_intr.c
--- a/sys/arch/powerpc/booke/e500_intr.c Tue Apr 14 21:09:48 2015 +0000
+++ b/sys/arch/powerpc/booke/e500_intr.c Tue Apr 14 22:36:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: e500_intr.c,v 1.32 2015/01/23 09:02:42 nonaka Exp $ */
+/* $NetBSD: e500_intr.c,v 1.33 2015/04/14 22:36:54 jmcneill Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -41,7 +41,7 @@
#define __INTR_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.32 2015/01/23 09:02:42 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.33 2015/04/14 22:36:54 jmcneill Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -1279,7 +1279,7 @@
typedef void (*ipifunc_t)(void);
-#ifdef __HAVE_PREEEMPTION
+#ifdef __HAVE_PREEMPTION
static void
e500_ipi_kpreempt(void)
{
Home |
Main Index |
Thread Index |
Old Index