patch-2.4.0-test10 linux/arch/mips64/sgi-ip27/ip27-memory.c

Next file: linux/arch/mips64/sgi-ip27/ip27-rtc.c
Previous file: linux/arch/mips64/sgi-ip22/ip22-timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test9/linux/arch/mips64/sgi-ip27/ip27-memory.c linux/arch/mips64/sgi-ip27/ip27-memory.c
@@ -200,11 +200,11 @@
 							<< PAGE_SHIFT));
 		NODE_DATA(node)->bdata = plat_node_bdata + node;
 		slot_freepfn += node_datasz;
-	  	bootmap_size = init_bootmem_node(node, slot_freepfn, 
+	  	bootmap_size = init_bootmem_node(NODE_DATA(node), slot_freepfn, 
 						slot_firstpfn, slot_lastpfn);
-		free_bootmem_node(node, slot_firstpfn << PAGE_SHIFT, 
+		free_bootmem_node(NODE_DATA(node), slot_firstpfn << PAGE_SHIFT, 
 				(slot_lastpfn - slot_firstpfn) << PAGE_SHIFT);
-		reserve_bootmem_node(node, slot_firstpfn << PAGE_SHIFT,
+		reserve_bootmem_node(NODE_DATA(node), slot_firstpfn << PAGE_SHIFT,
 		  ((slot_freepfn - slot_firstpfn) << PAGE_SHIFT) + bootmap_size);
 	}
 	printk("Total memory probed : 0x%lx pages\n", numpages);
@@ -278,7 +278,7 @@
 		/*
 	 	 * This will free up the bootmem, ie, slot 0 memory.
 	 	 */
-		totalram_pages += free_all_bootmem_node(nid);
+		totalram_pages += free_all_bootmem_node(NODE_DATA(nid));
 
 		/*
 		 * We need to manually do the other slots.

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