* [PATCH/RFC 2/2] Remove pgdat list
@ 2005-05-13 7:27 Yasunori Goto
0 siblings, 0 replies; only message in thread
From: Yasunori Goto @ 2005-05-13 7:27 UTC (permalink / raw)
To: linux-mm
This patch is moving NODE_DATA()'s definition in include/linux/mmzone.h
to use for_each_pgdat or for_each_zone.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
---
pgdat_link-goto/include/linux/mmzone.h | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff -puN include/linux/mmzone.h~move_node_data include/linux/mmzone.h
--- pgdat_link/include/linux/mmzone.h~move_node_data 2005-05-13 12:09:34.996172040 +0900
+++ pgdat_link-goto/include/linux/mmzone.h 2005-05-13 12:13:33.006988896 +0900
@@ -304,6 +304,20 @@ unsigned long __init node_memmap_size_by
*/
#define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones)
+#ifndef CONFIG_NEED_MULTIPLE_NODES
+
+extern struct pglist_data contig_page_data;
+#define NODE_DATA(nid) (&contig_page_data)
+#define NODE_MEM_MAP(nid) mem_map
+#define MAX_NODES_SHIFT 1
+#define pfn_to_nid(pfn) (0)
+
+#else /* CONFIG_NEED_MULTIPLE_NODES */
+
+#include <asm/mmzone.h>
+
+#endif /* !CONFIG_NEED_MULTIPLE_NODES */
+
#define first_online_pgdat() NODE_DATA(first_online_node())
#define next_online_pgdat(pgdat) \
((next_online_node((pgdat)->node_id) != MAX_NUMNODES) ? \
@@ -403,20 +417,6 @@ int lowmem_reserve_ratio_sysctl_handler(
/* Returns the number of the current Node. */
#define numa_node_id() (cpu_to_node(_smp_processor_id()))
-#ifndef CONFIG_NEED_MULTIPLE_NODES
-
-extern struct pglist_data contig_page_data;
-#define NODE_DATA(nid) (&contig_page_data)
-#define NODE_MEM_MAP(nid) mem_map
-#define MAX_NODES_SHIFT 1
-#define pfn_to_nid(pfn) (0)
-
-#else /* CONFIG_NEED_MULTIPLE_NODES */
-
-#include <asm/mmzone.h>
-
-#endif /* !CONFIG_NEED_MULTIPLE_NODES */
-
#ifdef CONFIG_SPARSEMEM
#include <asm/sparsemem.h>
#endif
_
--
Yasunori Goto
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-13 7:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 7:27 [PATCH/RFC 2/2] Remove pgdat list Yasunori Goto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox