patch-2.4.4 linux/include/asm-arm/mmzone.h

Next file: linux/include/asm-arm/pgalloc.h
Previous file: linux/include/asm-arm/io.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-arm/mmzone.h linux/include/asm-arm/mmzone.h
@@ -10,6 +10,21 @@
 #ifndef __ASM_MMZONE_H
 #define __ASM_MMZONE_H
 
+/*
+ * Currently defined in arch/arm/mm/discontig.c
+ */
+extern pg_data_t discontig_node_data[];
+
+/*
+ * Return a pointer to the node data for node n.
+ */
+#define NODE_DATA(nid)		(&discontig_node_data[nid])
+
+/*
+ * NODE_MEM_MAP gives the kaddr for the mem_map of the node.
+ */
+#define NODE_MEM_MAP(nid)	(NODE_DATA(nid)->node_mem_map)
+
 #include <asm/arch/mmzone.h>
 
 #endif

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