From owner-svn-src-head@FreeBSD.ORG Sun Sep 1 17:06:15 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0548FCD4; Sun, 1 Sep 2013 17:06:15 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E6DD52866; Sun, 1 Sep 2013 17:06:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r81H6EYM044407; Sun, 1 Sep 2013 17:06:14 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r81H6Ed9044406; Sun, 1 Sep 2013 17:06:14 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201309011706.r81H6Ed9044406@svn.freebsd.org> From: Alan Cox Date: Sun, 1 Sep 2013 17:06:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255125 - head/sys/mips/mips X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2013 17:06:15 -0000 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); }