Author: jhibbits Date: Sun Dec 10 04:43:27 2017 New Revision: 326739 URL: https://svnweb.freebsd.org/changeset/base/326739
Log: Retrieve the page outside of holding locks pmap_track_page() only works with physical memory pages, which have a constant vm_page_t address. Microoptimize pmap_track_page() to perform one less operation under the lock. Modified: head/sys/powerpc/booke/pmap.c Modified: head/sys/powerpc/booke/pmap.c ============================================================================== --- head/sys/powerpc/booke/pmap.c Sat Dec 9 23:34:00 2017 (r326738) +++ head/sys/powerpc/booke/pmap.c Sun Dec 10 04:43:27 2017 (r326739) @@ -4224,10 +4224,10 @@ pmap_track_page(pmap_t pmap, vm_offset_t va) va = trunc_page(va); pa = pmap_kextract(va); + page = PHYS_TO_VM_PAGE(pa); rw_wlock(&pvh_global_lock); PMAP_LOCK(pmap); - page = PHYS_TO_VM_PAGE(pa); TAILQ_FOREACH(pve, &page->md.pv_list, pv_link) { if ((pmap == pve->pv_pmap) && (va == pve->pv_va)) { _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"