diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2013-10-18 22:47:10 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2013-10-18 22:47:10 +0000 |
commit | f8c98b122775097fcd6ee1e0d0b3babf19c61d18 (patch) | |
tree | 8440cb8e316a825b1de7151016575eab76ded5eb /sys | |
parent | 1a440eb2c0a776dc53f50a4303809cc06a0bd573 (diff) | |
download | src-f8c98b122775097fcd6ee1e0d0b3babf19c61d18.tar.gz src-f8c98b122775097fcd6ee1e0d0b3babf19c61d18.zip |
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
Notes
Notes:
svn path=/head/; revision=256756
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/arm/pmap-v6.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arm/arm/pmap-v6.c b/sys/arm/arm/pmap-v6.c index d22266984981..c89d14dab128 100644 --- a/sys/arm/arm/pmap-v6.c +++ b/sys/arm/arm/pmap-v6.c @@ -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); } |