Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2003 20:30:11 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 31671 for review
Message-ID:  <200305230330.h4N3UB5Y001170@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=31671

Change 31671 by peter@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305230330.h4N3UB5Y001170>