summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2013-09-01 17:06:14 +0000
committeralc <alc@FreeBSD.org>2013-09-01 17:06:14 +0000
commitf9897c6dd3d2e00bc25d5857c3c6b2be50c7efea (patch)
treeb2bbf7b169c29a95a9229323a0bed5a813f85b66 /sys/mips
parentf611b39b097571da28419bf99f104f2ce7d2d7ae (diff)
downloadFreeBSD-src-f9897c6dd3d2e00bc25d5857c3c6b2be50c7efea.zip
FreeBSD-src-f9897c6dd3d2e00bc25d5857c3c6b2be50c7efea.tar.gz
pmap_protect() on MIPS does not need to acquire the pvh global lock.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/pmap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index ebb6935..d1bf5ea 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -1914,7 +1914,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
if (prot & VM_PROT_WRITE)
return;
- rw_wlock(&pvh_global_lock);
PMAP_LOCK(pmap);
for (; sva < eva; sva = va_next) {
pdpe = pmap_segmap(pmap, sva);
@@ -1980,7 +1979,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sva, vm_offset_t eva, vm_prot_t prot)
if (va != va_next)
pmap_invalidate_range(pmap, va, sva);
}
- rw_wunlock(&pvh_global_lock);
PMAP_UNLOCK(pmap);
}
OpenPOWER on IntegriCloud