Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2014 17:52:07 +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: r268596 - head/sys/powerpc/aim
Message-ID:  <201407131752.s6DHq7mM002816@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Jul 13 17:52:07 2014
New Revision: 268596
URL: http://svnweb.freebsd.org/changeset/base/268596

Log:
  Eliminate an unused variable.  Refresh two comments.

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

Modified: head/sys/powerpc/aim/mmu_oea.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea.c	Sun Jul 13 17:50:50 2014	(r268595)
+++ head/sys/powerpc/aim/mmu_oea.c	Sun Jul 13 17:52:07 2014	(r268596)
@@ -1141,7 +1141,7 @@ moea_enter(mmu_t mmu, pmap_t pmap, vm_of
  * target pmap with the protection requested.  If specified the page
  * will be wired down.
  *
- * The page queues and pmap must be locked.
+ * The global pvh and pmap must be locked.
  */
 static void
 moea_enter_locked(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
@@ -1149,7 +1149,6 @@ moea_enter_locked(pmap_t pmap, vm_offset
 {
 	struct		pvo_head *pvo_head;
 	uma_zone_t	zone;
-	vm_page_t	pg;
 	u_int		pte_lo, pvo_flags;
 	int		error;
 
@@ -1157,10 +1156,8 @@ moea_enter_locked(pmap_t pmap, vm_offset
 		pvo_head = &moea_pvo_kunmanaged;
 		zone = moea_upvo_zone;
 		pvo_flags = 0;
-		pg = NULL;
 	} else {
 		pvo_head = vm_page_to_pvoh(m);
-		pg = m;
 		zone = moea_mpvo_zone;
 		pvo_flags = PVO_MANAGED;
 	}
@@ -1170,7 +1167,7 @@ moea_enter_locked(pmap_t pmap, vm_offset
 	if ((m->oflags & VPO_UNMANAGED) == 0 && !vm_page_xbusied(m))
 		VM_OBJECT_ASSERT_LOCKED(m->object);
 
-	/* XXX change the pvo head for fake pages */
+	/* XXX change the pvo head for unmanaged pages */
 	if ((m->oflags & VPO_UNMANAGED) != 0) {
 		pvo_flags &= ~PVO_MANAGED;
 		pvo_head = &moea_pvo_kunmanaged;



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