aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/numa_64.c
diff options
context:
space:
mode:
authortravis@sgi.com <travis@sgi.com>2008-01-30 07:33:15 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:15 -0500
commit316390b093e9b80f8ab13b3eea82f912e186bbf6 (patch)
treec491b3e331c29fa997722ee2078107deb6c675ae /arch/x86/mm/numa_64.c
parent28c6075c72a312986f6d7802005251bdb91ca80c (diff)
x86: fixup NR-CPUS patch for numa
This patch removes the EXPORT_SYMBOL for: x86_cpu_to_node_map_init x86_cpu_to_node_map_early_ptr ... thus fixing the section mismatch problem. Also, the mem -> node hash lookup is fixed. Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/numa_64.c')
-rw-r--r--arch/x86/mm/numa_64.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index 7b03d2090c28..37d429beba96 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -35,8 +35,6 @@ u16 x86_cpu_to_node_map_init[NR_CPUS] = {
35 [0 ... NR_CPUS-1] = NUMA_NO_NODE 35 [0 ... NR_CPUS-1] = NUMA_NO_NODE
36}; 36};
37void *x86_cpu_to_node_map_early_ptr; 37void *x86_cpu_to_node_map_early_ptr;
38EXPORT_SYMBOL(x86_cpu_to_node_map_init);
39EXPORT_SYMBOL(x86_cpu_to_node_map_early_ptr);
40DEFINE_PER_CPU(u16, x86_cpu_to_node_map) = NUMA_NO_NODE; 38DEFINE_PER_CPU(u16, x86_cpu_to_node_map) = NUMA_NO_NODE;
41EXPORT_PER_CPU_SYMBOL(x86_cpu_to_node_map); 39EXPORT_PER_CPU_SYMBOL(x86_cpu_to_node_map);
42 40
@@ -88,7 +86,7 @@ static int __init allocate_cachealigned_memnodemap(void)
88 unsigned long pad, pad_addr; 86 unsigned long pad, pad_addr;
89 87
90 memnodemap = memnode.embedded_map; 88 memnodemap = memnode.embedded_map;
91 if (memnodemapsize <= 48) 89 if (memnodemapsize <= ARRAY_SIZE(memnode.embedded_map))
92 return 0; 90 return 0;
93 91
94 pad = L1_CACHE_BYTES - 1; 92 pad = L1_CACHE_BYTES - 1;