summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/mmzone_32.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-05-02 16:18:53 +0400
committerTejun Heo <tj@kernel.org>2011-05-02 16:18:53 +0400
commitdaf4f480ae24270bac06db4293908d36b4834e21 (patch)
tree017080a1325ae02b70006100de396640a94db2b8 /arch/x86/include/asm/mmzone_32.h
parenteca9ad313293c41021bfcf23e985a14f6991a121 (diff)
downloadlinux-daf4f480ae24270bac06db4293908d36b4834e21.tar.xz
x86-32, NUMA: Move get_memcfg_numa() into numa_32.c
There's no reason get_memcfg_numa() to be implemented inline in mmzone_32.h. Move it to numa_32.c and also make get_memcfg_numa_flag() static. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/mmzone_32.h')
-rw-r--r--arch/x86/include/asm/mmzone_32.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/x86/include/asm/mmzone_32.h b/arch/x86/include/asm/mmzone_32.h
index 91df7c51806c..73e5745aef34 100644
--- a/arch/x86/include/asm/mmzone_32.h
+++ b/arch/x86/include/asm/mmzone_32.h
@@ -16,28 +16,10 @@ extern struct pglist_data *node_data[];
/* summit or generic arch */
#include <asm/srat.h>
-extern int get_memcfg_numa_flat(void);
-/*
- * This allows any one NUMA architecture to be compiled
- * for, and still fall back to the flat function if it
- * fails.
- */
-static inline void get_memcfg_numa(void)
-{
-
- if (get_memcfg_numaq())
- return;
- if (get_memcfg_from_srat())
- return;
- get_memcfg_numa_flat();
-}
-
extern void resume_map_numa_kva(pgd_t *pgd);
#else /* !CONFIG_NUMA */
-#define get_memcfg_numa get_memcfg_numa_flat
-
static inline void resume_map_numa_kva(pgd_t *pgd) {}
#endif /* CONFIG_NUMA */