Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Spell PMAP_TLB_NEED_SHOOTDOWN correctly
details: https://anonhg.NetBSD.org/src/rev/5d6622c2a921
branches: trunk
changeset: 346466:5d6622c2a921
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Jul 14 05:00:51 2016 +0000
description:
Spell PMAP_TLB_NEED_SHOOTDOWN correctly
diffstat:
sys/arch/arm/arm32/pmap.c | 6 +++---
sys/arch/arm/include/arm32/pmap.h | 4 ++--
sys/uvm/pmap/pmap.c | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r a9106c85d9ea -r 5d6622c2a921 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Jul 14 04:49:55 2016 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Jul 14 05:00:51 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.333 2016/07/12 15:40:53 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.334 2016/07/14 05:00:51 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
#include <arm/locore.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.333 2016/07/12 15:40:53 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.334 2016/07/14 05:00:51 skrll Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -7857,7 +7857,7 @@
int
pic_ipi_shootdown(void *arg)
{
-#if PMAP_NEED_TLB_SHOOTDOWN
+#if PMAP_TLB_NEED_SHOOTDOWN
pmap_tlb_shootdown_process();
#endif
return 1;
diff -r a9106c85d9ea -r 5d6622c2a921 sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Thu Jul 14 04:49:55 2016 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Thu Jul 14 05:00:51 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.143 2015/11/11 17:54:17 skrll Exp $ */
+/* $NetBSD: pmap.h,v 1.144 2016/07/14 05:00:51 skrll Exp $ */
/*
* Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -87,7 +87,7 @@
#define PMAP_TLB_MAX 1
#define PMAP_TLB_HWPAGEWALKER 1
#if PMAP_TLB_MAX > 1
-#define PMAP_NEED_TLB_SHOOTDOWN 1
+#define PMAP_TLB_NEED_SHOOTDOWN 1
#endif
#define PMAP_TLB_FLUSH_ASID_ON_RESET (arm_has_tlbiasid_p)
#define PMAP_TLB_NUM_PIDS 256
diff -r a9106c85d9ea -r 5d6622c2a921 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Thu Jul 14 04:49:55 2016 +0000
+++ b/sys/uvm/pmap/pmap.c Thu Jul 14 05:00:51 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.17 2016/07/14 04:51:47 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.18 2016/07/14 05:00:51 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.17 2016/07/14 04:51:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.18 2016/07/14 05:00:51 skrll Exp $");
/*
* Manages physical address maps.
@@ -845,7 +845,7 @@
PMAP_COUNT(update);
kpreempt_disable();
-#if defined(MULTIPROCESSOR) && defined(PMAP_NEED_TLB_SHOOTDOWN)
+#if defined(MULTIPROCESSOR) && defined(PMAP_TLB_NEED_SHOOTDOWN)
u_int pending = atomic_swap_uint(&pmap->pm_shootdown_pending, 0);
if (pending && pmap_tlb_shootdown_bystanders(pmap))
PMAP_COUNT(shootdown_ipis);
Home |
Main Index |
Thread Index |
Old Index