public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PPC64] Trivial cleanups to hugepage support
@ 2004-01-28  5:16 David Gibson
  0 siblings, 0 replies; only message in thread
From: David Gibson @ 2004-01-28  5:16 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Anton Blanchard, linuxppc64-dev, linux-kernel

Andrew, please apply.  These are some trivial cleanups to the hugepage
ppc64 support

===================================================================
--- working.orig/arch/ppc64/mm/hugetlbpage.c	2004-01-28 15:40:24.000000000 +1100
+++ working/arch/ppc64/mm/hugetlbpage.c	2004-01-28 15:40:47.000000000 +1100
@@ -654,10 +654,9 @@
 	unsigned long hpteflags, prpn, flags;
 	long slot;
 
-	ea &= ~(HPAGE_SIZE-1);
-
 	/* We have to find the first hugepte in the batch, since
 	 * that's the one that will store the HPTE flags */
+	ea &= HPAGE_MASK;
 	ptep = hugepte_offset(mm, ea);
 
 	/* Search the Linux page table for a match with va */
@@ -885,10 +884,11 @@
 			spin_unlock(&htlbpage_lock);
 		}
 		htlbpage_max = htlbpage_free = htlbpage_total = i;
-		printk("Total HugeTLB memory allocated, %d\n", htlbpage_free);
+		printk(KERN_INFO "Total HugeTLB memory allocated, %d\n",
+		       htlbpage_free);
 	} else {
 		htlbpage_max = 0;
-		printk("CPU does not support HugeTLB\n");
+		printk(KERN_INFO "CPU does not support HugeTLB\n");
 	}
 
 	return 0;


-- 
David Gibson			| For every complex problem there is a
david AT gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-28  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28  5:16 [PPC64] Trivial cleanups to hugepage support David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox