Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm/pmap put a variable under the #ifdef it's only used in.



details:   https://anonhg.NetBSD.org/src/rev/af5c9b1a9999
branches:  trunk
changeset: 817464:af5c9b1a9999
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Aug 20 20:09:47 2016 +0000

description:
put a variable under the #ifdef it's only used in.

diffstat:

 sys/uvm/pmap/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e9167dfd2c92 -r af5c9b1a9999 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c       Sat Aug 20 20:05:28 2016 +0000
+++ b/sys/uvm/pmap/pmap.c       Sat Aug 20 20:09:47 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.20 2016/08/18 21:42:27 matt Exp $   */
+/*     $NetBSD: pmap.c,v 1.21 2016/08/20 20:09:47 mrg 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.20 2016/08/18 21:42:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.21 2016/08/20 20:09:47 mrg Exp $");
 
 /*
  *     Manages physical address maps.
@@ -1411,8 +1411,8 @@
                        continue;
 
                PMAP_COUNT(kremove_pages);
+#ifdef PMAP_VIRTUAL_CACHE_ALIASES
                struct vm_page * const pg = PHYS_TO_VM_PAGE(pte_to_paddr(pte));
-#ifdef PMAP_VIRTUAL_CACHE_ALIASES
                if (pg != NULL && pmap_md_virtual_cache_aliasing_p()) {
                        pmap_remove_pv(pmap, sva, pg, !pte_readonly_p(pte));
                }



Home | Main Index | Thread Index | Old Index