Remove the allpmaps list. It's unused.
Reviewed by: peter@
This commit is contained in:
parent
1c4ba0be13
commit
fa543780cc
@ -160,8 +160,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
struct pmap kernel_pmap_store;
|
||||
LIST_HEAD(pmaplist, pmap);
|
||||
static struct pmaplist allpmaps;
|
||||
static struct mtx allpmaps_lock;
|
||||
|
||||
vm_paddr_t avail_start; /* PA of first available physical page */
|
||||
vm_paddr_t avail_end; /* PA of last available physical page */
|
||||
@ -491,11 +489,6 @@ pmap_bootstrap(firstaddr)
|
||||
kernel_pmap->pm_pml4 = (pdp_entry_t *) (KERNBASE + KPML4phys);
|
||||
kernel_pmap->pm_active = -1; /* don't allow deactivation */
|
||||
TAILQ_INIT(&kernel_pmap->pm_pvlist);
|
||||
LIST_INIT(&allpmaps);
|
||||
mtx_init(&allpmaps_lock, "allpmaps", NULL, MTX_SPIN);
|
||||
mtx_lock_spin(&allpmaps_lock);
|
||||
LIST_INSERT_HEAD(&allpmaps, kernel_pmap, pm_list);
|
||||
mtx_unlock_spin(&allpmaps_lock);
|
||||
nkpt = NKPT;
|
||||
|
||||
/*
|
||||
@ -1082,9 +1075,6 @@ pmap_pinit0(pmap)
|
||||
pmap->pm_active = 0;
|
||||
TAILQ_INIT(&pmap->pm_pvlist);
|
||||
bzero(&pmap->pm_stats, sizeof pmap->pm_stats);
|
||||
mtx_lock_spin(&allpmaps_lock);
|
||||
LIST_INSERT_HEAD(&allpmaps, pmap, pm_list);
|
||||
mtx_unlock_spin(&allpmaps_lock);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1112,10 +1102,6 @@ pmap_pinit(pmap)
|
||||
if ((pml4pg->flags & PG_ZERO) == 0)
|
||||
pagezero(pmap->pm_pml4);
|
||||
|
||||
mtx_lock_spin(&allpmaps_lock);
|
||||
LIST_INSERT_HEAD(&allpmaps, pmap, pm_list);
|
||||
mtx_unlock_spin(&allpmaps_lock);
|
||||
|
||||
/* Wire in kernel global address entries. */
|
||||
pmap->pm_pml4[KPML4I] = KPDPphys | PG_RW | PG_V | PG_U;
|
||||
pmap->pm_pml4[DMPML4I] = DMPDPphys | PG_RW | PG_V | PG_U;
|
||||
@ -1332,10 +1318,6 @@ pmap_release(pmap_t pmap)
|
||||
("pmap_release: pmap resident count %ld != 0",
|
||||
pmap->pm_stats.resident_count));
|
||||
|
||||
mtx_lock_spin(&allpmaps_lock);
|
||||
LIST_REMOVE(pmap, pm_list);
|
||||
mtx_unlock_spin(&allpmaps_lock);
|
||||
|
||||
m = PHYS_TO_VM_PAGE(pmap->pm_pml4[PML4PML4I] & PG_FRAME);
|
||||
|
||||
pmap->pm_pml4[KPML4I] = 0; /* KVA */
|
||||
|
@ -226,7 +226,6 @@ struct pmap {
|
||||
u_int pm_active; /* active on cpus */
|
||||
/* spare u_int here due to padding */
|
||||
struct pmap_statistics pm_stats; /* pmap statistics */
|
||||
LIST_ENTRY(pmap) pm_list; /* List of all pmaps */
|
||||
};
|
||||
|
||||
typedef struct pmap *pmap_t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user