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:
parent
99ca5b8804
commit
ff8ea5e396
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user