Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 22:47:11 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256756 - head/sys/arm/arm
Message-ID:  <201310182247.r9IMlB5a067697@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Fri Oct 18 22:47:10 2013
New Revision: 256756
URL: http://svnweb.freebsd.org/changeset/base/256756

Log:
  There's no need to guard pmap_extract(), it won't be called until well after
  the VM has been properly initialized.
  
  Spotted out by:	alc

Modified:
  head/sys/arm/arm/pmap-v6.c

Modified: head/sys/arm/arm/pmap-v6.c
==============================================================================
--- head/sys/arm/arm/pmap-v6.c	Fri Oct 18 22:05:17 2013	(r256755)
+++ head/sys/arm/arm/pmap-v6.c	Fri Oct 18 22:47:10 2013	(r256756)
@@ -3297,11 +3297,9 @@ pmap_extract(pmap_t pmap, vm_offset_t va
 {
 	vm_paddr_t pa;
 
-	if (kernel_vm_end != 0)
-		PMAP_LOCK(pmap);
+	PMAP_LOCK(pmap);
 	pa = pmap_extract_locked(pmap, va);
-	if (kernel_vm_end != 0)
-		PMAP_UNLOCK(pmap);
+	PMAP_UNLOCK(pmap);
 	return (pa);
 }
 



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