From e43343208a46298418acd1048b929ddbb06c8256 Mon Sep 17 00:00:00 2001 From: marcel Date: Sun, 11 Feb 2007 02:52:54 +0000 Subject: Now that the free page queue mutex is a sleep mutex, we cannot call vm_page_alloc() from within a critical section in pmap_growkernel(). Since the need for a critical section may never have existed in the first place, simply get rid of it. Discussed with: alc@ --- sys/ia64/ia64/pmap.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sys/ia64') diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index bcdaae7..2f8766c 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -752,11 +752,6 @@ pmap_growkernel(vm_offset_t addr) struct ia64_lpte *ptepage; vm_page_t nkpg; - if (kernel_vm_end >= addr) - return; - - critical_enter(); - while (kernel_vm_end < addr) { /* We could handle more by increasing the size of kptdir. */ if (nkpt == MAXKPT) @@ -775,8 +770,6 @@ pmap_growkernel(vm_offset_t addr) nkpt++; kernel_vm_end += PAGE_SIZE * NKPTEPG; } - - critical_exit(); } /*************************************************** -- cgit v1.1