summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/pmap.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2012-08-09 16:38:17 +0000
committeralc <alc@FreeBSD.org>2012-08-09 16:38:17 +0000
commit9b3a7015c6d01a571d558b448ba194752db4a276 (patch)
treeb4917c6d9f8ddebaa31ac915a06dcc32f85dff7c /sys/mips/include/pmap.h
parent01c6b906beb3f49fe7d799ffaa172f7b9d686595 (diff)
downloadFreeBSD-src-9b3a7015c6d01a571d558b448ba194752db4a276.zip
FreeBSD-src-9b3a7015c6d01a571d558b448ba194752db4a276.tar.gz
Merge r132141 and r111272 from amd64/i386:
Reduce the size of a PV entry by eliminating pv_ptem. There is no need to store a pointer to the page table page in the PV entry because it is easily computed during the walk down the page table. Eliminate the ptphint from the pmap. Long, long ago, page table pages belonged to a vm object, and we would look up page table pages based upon their offset within this vm object. In those days, this hint may have had tangible benefits. Tested by: jchandra
Diffstat (limited to 'sys/mips/include/pmap.h')
-rw-r--r--sys/mips/include/pmap.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h
index fbe8dd3..e10212b 100644
--- a/sys/mips/include/pmap.h
+++ b/sys/mips/include/pmap.h
@@ -90,7 +90,6 @@ struct pmap {
u_int32_t gen:ASIDGEN_BITS; /* its generation number */
} pm_asid[MAXSMPCPU];
struct pmap_statistics pm_stats; /* pmap statistics */
- struct vm_page *pm_ptphint; /* pmap ptp hint */
struct mtx pm_mtx;
};
@@ -126,7 +125,6 @@ typedef struct pv_entry {
vm_offset_t pv_va; /* virtual address for mapping */
TAILQ_ENTRY(pv_entry) pv_list;
TAILQ_ENTRY(pv_entry) pv_plist;
- vm_page_t pv_ptem; /* VM page for pte */
} *pv_entry_t;
/*
OpenPOWER on IntegriCloud