diff options
author | marcel <marcel@FreeBSD.org> | 2007-02-11 02:52:54 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-02-11 02:52:54 +0000 |
commit | e43343208a46298418acd1048b929ddbb06c8256 (patch) | |
tree | 740672348bfa399d3a8de73488715e51508cebab /sys/ia64 | |
parent | 7fe6b5282a4e3171649a505f7b4d63537602d45e (diff) | |
download | FreeBSD-src-e43343208a46298418acd1048b929ddbb06c8256.zip FreeBSD-src-e43343208a46298418acd1048b929ddbb06c8256.tar.gz |
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@
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/pmap.c | 7 |
1 files changed, 0 insertions, 7 deletions
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(); } /*************************************************** |