Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2012 13:22:42 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233117 - head/sys/powerpc/aim
Message-ID:  <201203181322.q2IDMg9W020835@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Mar 18 13:22:42 2012
New Revision: 233117
URL: http://svn.freebsd.org/changeset/base/233117

Log:
  Remove acquisition of VM page queues lock from pmap_protect(). Any actual
  manipulation of the pvo_vlink and pvo_olink entries is already protected
  by the table lock, so most remaining instances of the acquisition of the
  page queues lock can likely be replaced with the table lock, or removed
  if the table lock is already held.
  
  Reviewed by:	alc

Modified:
  head/sys/powerpc/aim/mmu_oea64.c

Modified: head/sys/powerpc/aim/mmu_oea64.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea64.c	Sun Mar 18 13:02:56 2012	(r233116)
+++ head/sys/powerpc/aim/mmu_oea64.c	Sun Mar 18 13:22:42 2012	(r233117)
@@ -1965,7 +1965,6 @@ moea64_protect(mmu_t mmu, pmap_t pm, vm_
 		return;
 	}
 
-	vm_page_lock_queues();
 	PMAP_LOCK(pm);
 	if ((eva - sva)/PAGE_SIZE < pm->pm_stats.resident_count) {
 		for (; sva < eva; sva += PAGE_SIZE) {
@@ -1980,7 +1979,6 @@ moea64_protect(mmu_t mmu, pmap_t pm, vm_
 			moea64_pvo_protect(mmu, pm, pvo, prot);
 		}
 	}
-	vm_page_unlock_queues();
 	PMAP_UNLOCK(pm);
 }
 



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