From c540d472eb276ef84bd4686ecd8ed70d5aad9b63 Mon Sep 17 00:00:00 2001 From: arr Date: Tue, 23 Jul 2002 04:18:10 +0000 Subject: - Pass the VM_ALLOC_WIRED flag to vm_page_alloc() in pmap_growkernel() so that we can avoid a call to vm_page_lock_queues(). Approved by: peter --- sys/ia64/ia64/pmap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index ac7464e..05ad4dd 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -854,15 +854,12 @@ pmap_growkernel(vm_offset_t addr) /* * This index is bogus, but out of the way */ - nkpg = vm_page_alloc(kptobj, nkpt, VM_ALLOC_SYSTEM); + nkpg = vm_page_alloc(kptobj, nkpt, + VM_ALLOC_SYSTEM | VM_ALLOC_WIRED); if (!nkpg) panic("pmap_growkernel: no memory to grow kernel"); nkpt++; - - vm_page_lock_queues(); - vm_page_wire(nkpg); - vm_page_unlock_queues(); ptepage = (struct ia64_lpte *) IA64_PHYS_TO_RR7(VM_PAGE_TO_PHYS(nkpg)); bzero(ptepage, PAGE_SIZE); -- cgit v1.1