Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/arch/arm/arm32 Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/47ea2fa76e0b
branches:  netbsd-7
changeset: 799813:47ea2fa76e0b
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Feb 26 22:31:06 2016 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1106):
        sys/arch/arm/arm32/pmap.c: revision 1.332
Delete pmap_pmaps and its only user pmap_dump_all.  The list wasn't
being updated in an MP-safe manner.

diffstat:

 sys/arch/arm/arm32/pmap.c |  25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diffs (76 lines):

diff -r 2bd734ac15b0 -r 47ea2fa76e0b sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Feb 26 22:29:04 2016 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Feb 26 22:31:06 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.295.2.7 2015/05/27 05:33:29 msaitoh Exp $   */
+/*     $NetBSD: pmap.c,v 1.295.2.8 2016/02/26 22:31:06 snj Exp $       */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
 #include <arm/locore.h>
 //#include <arm/arm32/katelib.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.7 2015/05/27 05:33:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295.2.8 2016/02/26 22:31:06 snj Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -281,7 +281,6 @@
  * in pmap_create().
  */
 static struct pool_cache pmap_cache;
-static LIST_HEAD(, pmap) pmap_pmaps;
 
 /*
  * Pool of PV structures
@@ -3035,8 +3034,6 @@
 
        pmap_pinit(pm);
 
-       LIST_INSERT_HEAD(&pmap_pmaps, pm, pm_list);
-
        return (pm);
 }
 
@@ -5102,8 +5099,6 @@
        }
 #endif
 
-       LIST_REMOVE(pm, pm_list);
-
        pmap_free_l1(pm);
 
 #ifdef ARM_MMU_EXTENDED
@@ -6240,8 +6235,6 @@
         */
        pool_cache_bootstrap(&pmap_cache, sizeof(struct pmap), 0, 0, 0,
            "pmappl", NULL, IPL_NONE, pmap_pmap_ctor, NULL, NULL);
-       LIST_INIT(&pmap_pmaps);
-       LIST_INSERT_HEAD(&pmap_pmaps, pm, pm_list);
 
        /*
         * Initialize the pv pool.
@@ -7486,22 +7479,8 @@
 /*
  * A couple of ddb-callable functions for dumping pmaps
  */
-void pmap_dump_all(void);
 void pmap_dump(pmap_t);
 
-void
-pmap_dump_all(void)
-{
-       pmap_t pm;
-
-       LIST_FOREACH(pm, &pmap_pmaps, pm_list) {
-               if (pm == pmap_kernel())
-                       continue;
-               pmap_dump(pm);
-               printf("\n");
-       }
-}
-
 static pt_entry_t ncptes[64];
 static void pmap_dump_ncpg(pmap_t);
 



Home | Main Index | Thread Index | Old Index