[PATCH] x86_64 out of line numa funcs are discontig only

From: Andy Whitcroft
Date: Wed Jan 11 2006 - 14:24:00 EST


Grrrr, patch sender collapsed the cc lines ...

-------- Original Message --------
Subject: [PATCH] x86_64 out of line numa funcs are discontig only
Date: Wed, 11 Jan 2006 18:14:11 +0000
From: Andy Whitcroft <apw@xxxxxxxxxxxx>
To: Andrew Morton <akpm@xxxxxxxx>
CC: Andi Kleen <ak@xxxxxxx>
References: <20060111042135.24faf878.akpm@xxxxxxxx>

x86_64 out of line numa funcs are discontig only

The following patch included in 2.6.15-mm3 moves the inline DISCONTIGMEM
page accessor functions into numa.c. However, these are only used under
DISCONTIGMEM and need covered by CONFIG_DISCONTIGMEM:

x86_64-out-of-line-numa-funcs.patch

Signed-off-by: Andy Whitcroft <apw@xxxxxxxxxxxx>
---
numa.c | 2 ++
1 files changed, 2 insertions(+)
diff -upN reference/arch/x86_64/mm/numa.c current/arch/x86_64/mm/numa.c
--- reference/arch/x86_64/mm/numa.c
+++ current/arch/x86_64/mm/numa.c
@@ -361,6 +361,7 @@ EXPORT_SYMBOL(memnode_shift);
EXPORT_SYMBOL(memnodemap);
EXPORT_SYMBOL(node_data);

+#ifdef CONFIG_DISCONTIGMEM
/*
* Functions to convert PFNs from/to per node page addresses.
* These are out of line because they are quite big.
@@ -394,3 +395,4 @@ int pfn_valid(unsigned long pfn)
return pfn >= node_start_pfn(nid) && (pfn) < node_end_pfn(nid);
}
EXPORT_SYMBOL(pfn_valid);
+#endif /* CONFIG_DISCONTIGMEM */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/