summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-03-18 13:22:42 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-03-18 13:22:42 +0000
commitfcd574676ff38d18f42539cb9e99901b4679eaa2 (patch)
tree25bff5e4247daefa8cfdac937e81c90cf4a4ceaf /sys/powerpc/aim
parenta45ce69b303c1ce72705a73ca6d564f609987826 (diff)
downloadFreeBSD-src-fcd574676ff38d18f42539cb9e99901b4679eaa2.zip
FreeBSD-src-fcd574676ff38d18f42539cb9e99901b4679eaa2.tar.gz
Remove acquisition of VM page queues lock from pmap_protect(). Any actual
manipulation of the pvo_vlink and pvo_olink entries is already protected by the table lock, so most remaining instances of the acquisition of the page queues lock can likely be replaced with the table lock, or removed if the table lock is already held. Reviewed by: alc
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/mmu_oea64.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c
index 36ff645..e77de35 100644
--- a/sys/powerpc/aim/mmu_oea64.c
+++ b/sys/powerpc/aim/mmu_oea64.c
@@ -1965,7 +1965,6 @@ moea64_protect(mmu_t mmu, pmap_t pm, vm_offset_t sva, vm_offset_t eva,
return;
}
- vm_page_lock_queues();
PMAP_LOCK(pm);
if ((eva - sva)/PAGE_SIZE < pm->pm_stats.resident_count) {
for (; sva < eva; sva += PAGE_SIZE) {
@@ -1980,7 +1979,6 @@ moea64_protect(mmu_t mmu, pmap_t pm, vm_offset_t sva, vm_offset_t eva,
moea64_pvo_protect(mmu, pm, pvo, prot);
}
}
- vm_page_unlock_queues();
PMAP_UNLOCK(pm);
}
OpenPOWER on IntegriCloud