mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-21 15:54:00 +00:00
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
This commit is contained in:
parent
c0c5f0df71
commit
bab30462fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239171
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue