diff options
Diffstat (limited to 'sys/powerpc/powerpc/mmu_oea.c')
-rw-r--r-- | sys/powerpc/powerpc/mmu_oea.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/powerpc/mmu_oea.c b/sys/powerpc/powerpc/mmu_oea.c index b7f2d05..cc28d4b 100644 --- a/sys/powerpc/powerpc/mmu_oea.c +++ b/sys/powerpc/powerpc/mmu_oea.c @@ -62,6 +62,7 @@ static const char rcsid[] = #include <sys/param.h> #include <sys/systm.h> +#include <sys/kernel.h> #include <sys/proc.h> #include <sys/malloc.h> #include <sys/msgbuf.h> @@ -1639,7 +1640,10 @@ pmap_growkernel(vm_offset_t addr) void pmap_init2() { - pv_entry_max = PMAP_SHPGPERPROC * maxproc + vm_page_array_size; + int shpgperproc = PMAP_SHPGPERPROC; + + TUNABLE_INT_FETCH("vm.pmap.shpgperproc", &shpgperproc); + pv_entry_max = shpgperproc * maxproc + vm_page_array_size; pv_entry_high_water = 9 * (pv_entry_max / 10); zinitna(pvzone, &pvzone_obj, NULL, 0, pv_entry_max, ZONE_INTERRUPT, 1); } |