diff options
author | cognet <cognet@FreeBSD.org> | 2008-03-06 21:59:47 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2008-03-06 21:59:47 +0000 |
commit | 26dccf5aecf4b4630533b19c1bccf3dabb93278a (patch) | |
tree | a56c83d474b3f6ae5f261525166e8083fb223953 /sys | |
parent | 5f33f90d24e8c6aa3689da010e33cf37f17155f7 (diff) | |
download | FreeBSD-src-26dccf5aecf4b4630533b19c1bccf3dabb93278a.zip FreeBSD-src-26dccf5aecf4b4630533b19c1bccf3dabb93278a.tar.gz |
Remove unused pv_list_count from the vm_page, and pm_count from the struct
pmap.
Submitted by: Mark Tinguely
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/arm/pmap.c | 4 | ||||
-rw-r--r-- | sys/arm/include/pmap.h | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index e8b30a9..9d2247c 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -1597,7 +1597,6 @@ pmap_enter_pv(struct vm_page *pg, struct pv_entry *pve, pmap_t pm, TAILQ_INSERT_HEAD(&pg->md.pv_list, pve, pv_list); TAILQ_INSERT_HEAD(&pm->pm_pvlist, pve, pv_plist); pg->md.pvh_attrs |= flags & (PVF_REF | PVF_MOD); - pg->md.pv_list_count++; if (pve->pv_flags & PVF_WIRED) ++pm->pm_stats.wired_count; vm_page_flag_set(pg, PG_REFERENCED); @@ -1663,7 +1662,6 @@ pmap_nuke_pv(struct vm_page *pg, pmap_t pm, struct pv_entry *pve) TAILQ_REMOVE(&pm->pm_pvlist, pve, pv_plist); if (pve->pv_flags & PVF_WIRED) --pm->pm_stats.wired_count; - pg->md.pv_list_count--; if (pg->md.pvh_attrs & PVF_MOD) vm_page_dirty(pg); if (TAILQ_FIRST(&pg->md.pv_list) == NULL) @@ -1777,7 +1775,6 @@ pmap_page_init(vm_page_t m) { TAILQ_INIT(&m->md.pv_list); - m->md.pv_list_count = 0; } /* @@ -3652,7 +3649,6 @@ pmap_pinit(pmap_t pmap) pmap_alloc_l1(pmap); bzero(pmap->pm_l2, sizeof(pmap->pm_l2)); - pmap->pm_count = 1; pmap->pm_active = 0; TAILQ_INIT(&pmap->pm_pvlist); diff --git a/sys/arm/include/pmap.h b/sys/arm/include/pmap.h index 56b0d00..5eae652 100644 --- a/sys/arm/include/pmap.h +++ b/sys/arm/include/pmap.h @@ -94,7 +94,6 @@ struct pv_entry; struct md_page { int pvh_attrs; - int pv_list_count; TAILQ_HEAD(,pv_entry) pv_list; }; @@ -131,7 +130,6 @@ struct pmap { struct l1_ttable *pm_l1; struct l2_dtable *pm_l2[L2_SIZE]; pd_entry_t *pm_pdir; /* KVA of page directory */ - int pm_count; /* reference count */ int pm_active; /* active on cpus */ struct pmap_statistics pm_stats; /* pmap statictics */ TAILQ_HEAD(,pv_entry) pm_pvlist; /* list of mappings in pmap */ |