Since revision 1.280 of vm/vm_page.c, vm_page_grab() always returns a

zeroed page when passed VM_ALLOC_ZERO.  Thus, we can eliminate the check
against PG_ZERO from pmap_pinit().
This commit is contained in:
Alan Cox 2004-05-08 23:26:11 +00:00
parent 99ca5b8804
commit ff8ea5e396

View File

@ -999,8 +999,6 @@ pmap_pinit(pmap_t pm)
for (i = 0; i < TSB_PAGES; i++) {
m = vm_page_grab(pm->pm_tsb_obj, i,
VM_ALLOC_RETRY | VM_ALLOC_WIRED | VM_ALLOC_ZERO);
if ((m->flags & PG_ZERO) == 0)
pmap_zero_page(m);
vm_page_lock_queues();
vm_page_flag_clear(m, PG_BUSY);