diff options
author | alc <alc@FreeBSD.org> | 2012-08-10 05:47:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-08-10 05:47:04 +0000 |
commit | 9e07f731161cf8ea24ee718b868cb749e9e6019d (patch) | |
tree | 3337f4ff1d1485520414c50ef6fc8b432622dfce /sys/i386/xen | |
parent | 57023066b874c97e8483f6189c06adffc03fd456 (diff) | |
download | FreeBSD-src-9e07f731161cf8ea24ee718b868cb749e9e6019d.zip FreeBSD-src-9e07f731161cf8ea24ee718b868cb749e9e6019d.tar.gz |
Eliminate an unnecessary acquisition and release of the page queues lock
from pmap_pte(). PT_SET_MA() is not a queued mapping update, but instead
an immediate mapping update, so the page queues lock is not required here.
Reviewed by: cperciva
Diffstat (limited to 'sys/i386/xen')
-rw-r--r-- | sys/i386/xen/pmap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c index 4f123b0..61bc35f 100644 --- a/sys/i386/xen/pmap.c +++ b/sys/i386/xen/pmap.c @@ -965,9 +965,7 @@ pmap_pte(pmap_t pmap, vm_offset_t va) mtx_lock(&PMAP2mutex); newpf = *pde & PG_FRAME; if ((*PMAP2 & PG_FRAME) != newpf) { - vm_page_lock_queues(); PT_SET_MA(PADDR2, newpf | PG_V | PG_A | PG_M); - vm_page_unlock_queues(); CTR3(KTR_PMAP, "pmap_pte: pmap=%p va=0x%x newpte=0x%08x", pmap, va, (*PMAP2 & 0xffffffff)); } |