diff options
author | alc <alc@FreeBSD.org> | 2004-07-13 02:49:22 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-07-13 02:49:22 +0000 |
commit | ea94acfaa697b466403b3bf0b16d4772ff5ab621 (patch) | |
tree | 6940f183ade6a21c79f62549b14a7c432d9a255a /sys/arm | |
parent | d35148311bebc5f935642333bd965c18b7682a74 (diff) | |
download | FreeBSD-src-ea94acfaa697b466403b3bf0b16d4772ff5ab621.zip FreeBSD-src-ea94acfaa697b466403b3bf0b16d4772ff5ab621.tar.gz |
Push down the acquisition and release of the page queues lock into
pmap_remove_pages(). (The implementation of pmap_remove_pages() is
optional. If pmap_remove_pages() is unimplemented, the acquisition and
release of the page queues lock is unnecessary.)
Remove spl calls from the alpha, arm, and ia64 pmap_remove_pages().
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/pmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 1cb35b6..77d5279 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -2620,7 +2620,6 @@ pmap_remove_pages(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) struct l2_bucket *l2b; pt_entry_t *pte, tpte; pv_entry_t pv, npv; - int s; vm_page_t m; #ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY @@ -2630,7 +2629,7 @@ pmap_remove_pages(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) } #endif - s = splvm(); + vm_page_lock_queues(); for(pv = TAILQ_FIRST(&pmap->pm_pvlist); pv; pv = npv) { if (pv->pv_va >= eva || pv->pv_va < sva) { npv = TAILQ_NEXT(pv, pv_plist); @@ -2675,8 +2674,8 @@ pmap_remove_pages(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) pmap_unuse_pt(pv->pv_pmap, pv->pv_va, pv->pv_ptem); pmap_free_pv_entry(pv); } - splx(s); pmap_invalidate_tlb_all(pmap); + vm_page_unlock_queues(); } |