There's no need to guard pmap_extract(), it won't be called until well after

the VM has been properly initialized.

Spotted out by:	alc
This commit is contained in:
Olivier Houchard 2013-10-18 22:47:10 +00:00
parent 1a440eb2c0
commit f8c98b1227
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256756

View File

@ -3297,11 +3297,9 @@ pmap_extract(pmap_t pmap, vm_offset_t va)
{
vm_paddr_t pa;
if (kernel_vm_end != 0)
PMAP_LOCK(pmap);
PMAP_LOCK(pmap);
pa = pmap_extract_locked(pmap, va);
if (kernel_vm_end != 0)
PMAP_UNLOCK(pmap);
PMAP_UNLOCK(pmap);
return (pa);
}