All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: minor fix of numa message
@ 2006-09-14 15:17 Geoff Levand
  2006-09-15  1:04 ` Michael Ellerman
  0 siblings, 1 reply; 3+ messages in thread
From: Geoff Levand @ 2006-09-14 15:17 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev, anton

This is a very minor fix that effects no current system.  The NUMA startup
message values for 'Top of RAM' and 'Memory hole size' were reported
incorrectly if more than one lmb region was added.

A comment in the lmb code states that lmb_analyze() must be called before
lmb_phys_mem_size().

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

---

Index: cell--common--4/arch/powerpc/mm/numa.c
===================================================================
--- cell--common--4.orig/arch/powerpc/mm/numa.c
+++ cell--common--4/arch/powerpc/mm/numa.c
@@ -483,10 +483,14 @@
 
 static void __init setup_nonnuma(void)
 {
-	unsigned long top_of_ram = lmb_end_of_DRAM();
-	unsigned long total_ram = lmb_phys_mem_size();
+	unsigned long top_of_ram;
+	unsigned long total_ram;
 	unsigned int i;
 
+	lmb_analyze();
+	top_of_ram = lmb_end_of_DRAM();
+	total_ram = lmb_phys_mem_size();
+
 	printk(KERN_DEBUG "Top of RAM: 0x%lx, Total RAM: 0x%lx\n",
 	       top_of_ram, total_ram);
 	printk(KERN_DEBUG "Memory hole size: %ldMB\n",

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-16 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 15:17 [PATCH] powerpc: minor fix of numa message Geoff Levand
2006-09-15  1:04 ` Michael Ellerman
2006-09-16 17:35   ` Geoff Levand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.