[PATCH] powerpc: minor fix of numa message
From: Geoff Levand <hidden>
Date: 2006-09-14 15:20:54
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 <redacted> --- 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",