PERFORCE change 31671 for review
Peter Wemm
peter at FreeBSD.org
Thu May 22 20:30:14 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=31671
Change 31671 by peter at peter_hammer on 2003/05/22 20:30:01
minor optimization. only invalidate page if it is the current pmap.
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/pmap.c#12 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/pmap.c#12 (text+ko) ====
@@ -1146,11 +1146,13 @@
if (pdppg->hold_count == 0)
_pmap_unwire_pte_hold(pmap, va, pdppg);
}
- /*
- * Do an invltlb to make the invalidated mapping
- * take effect immediately.
- */
- pmap_invalidate_page(pmap, pteva);
+ if (pmap_is_current(pmap)) {
+ /*
+ * Do an invltlb to make the invalidated mapping
+ * take effect immediately.
+ */
+ pmap_invalidate_page(pmap, pteva);
+ }
/*
* If the page is finally unwired, simply free it.
More information about the p4-projects
mailing list