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@
This commit is contained in:
parent
79760c6bdf
commit
0b098709b0
@ -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();
|
||||
}
|
||||
|
||||
/***************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user