patch-2.3.27 linux/arch/ppc/mm/init.c

Next file: linux/arch/sparc/kernel/process.c
Previous file: linux/arch/ppc/mm/extable.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.26/linux/arch/ppc/mm/init.c linux/arch/ppc/mm/init.c
@@ -348,7 +348,7 @@
 	i = max_mapnr;
 	val->totalram = 0;
 	val->sharedram = 0;
-	val->freeram = nr_free_pages << PAGE_SHIFT;
+	val->freeram = nr_free_pages();
 	val->bufferram = atomic_read(&buffermem_pages);
 	while (i-- > 0)  {
 		if (PageReserved(mem_map+i))
@@ -1215,8 +1215,6 @@
 	 */
 	empty_bad_page = alloc_bootmem_pages(PAGE_SIZE);
 	empty_bad_page_table = alloc_bootmem_pages(PAGE_SIZE);
-
-	free_area_init(max_low_pfn);
 }
 
 void __init mem_init(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)