Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Sep 2013 17:06:14 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255125 - head/sys/mips/mips
Message-ID:  <201309011706.r81H6Ed9044406@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Sep  1 17:06:14 2013
New Revision: 255125
URL: http://svnweb.freebsd.org/changeset/base/255125

Log:
  pmap_protect() on MIPS does not need to acquire the pvh global lock.

Modified:
  head/sys/mips/mips/pmap.c

Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c	Sun Sep  1 14:28:12 2013	(r255124)
+++ head/sys/mips/mips/pmap.c	Sun Sep  1 17:06:14 2013	(r255125)
@@ -1914,7 +1914,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sv
 	if (prot & VM_PROT_WRITE)
 		return;
 
-	rw_wlock(&pvh_global_lock);
 	PMAP_LOCK(pmap);
 	for (; sva < eva; sva = va_next) {
 		pdpe = pmap_segmap(pmap, sva);
@@ -1980,7 +1979,6 @@ pmap_protect(pmap_t pmap, vm_offset_t sv
 		if (va != va_next)
 			pmap_invalidate_range(pmap, va, sva);
 	}
-	rw_wunlock(&pvh_global_lock);
 	PMAP_UNLOCK(pmap);
 }
 



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