[PATCH 1/1] x86: Fixup NR-CPUS patch for numa

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>, Andi Kleen <ak@...>, <mingo@...>, Eric Dumazet <dada1@...>
Cc: Christoph Lameter <clameter@...>, <linux-mm@...>, <linux-kernel@...>
Date: Wednesday, January 16, 2008 - 2:34 pm

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.

Based on 2.6.24-rc6-mm1 + change-NR_CPUS-V3 patchset

Signed-off-by: Mike Travis <travis@sgi.com>
---
 arch/x86/mm/numa_64.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- 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] __
 	[0 ... NR_CPUS-1] = NUMA_NO_NODE
 };
 void *x86_cpu_to_node_map_early_ptr;
-EXPORT_SYMBOL(x86_cpu_to_node_map_init);
-EXPORT_SYMBOL(x86_cpu_to_node_map_early_ptr);
 DEFINE_PER_CPU(u16, x86_cpu_to_node_map) = NUMA_NO_NODE;
 EXPORT_PER_CPU_SYMBOL(x86_cpu_to_node_map);
 
@@ -88,7 +86,7 @@ static int __init allocate_cachealigned_
 	unsigned long pad, pad_addr;
 
 	memnodemap = memnode.embedded_map;
-	if (memnodemapsize <= 48)
+	if (memnodemapsize <= ARRAY_SIZE(memnode.embedded_map))
 		return 0;
 
 	pad = L1_CACHE_BYTES - 1;

-- 

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] x86: Fixup NR-CPUS patch for numa, , (Wed Jan 16, 2:34 pm)
Re: [PATCH 1/1] x86: Fixup NR-CPUS patch for numa, Andrew Morton, (Thu Jan 17, 2:30 pm)
Re: [PATCH 1/1] x86: Fixup NR-CPUS patch for numa, Ingo Molnar, (Fri Jan 18, 8:08 am)
Re: [PATCH 1/1] x86: Fixup NR-CPUS patch for numa, Mike Travis, (Thu Jan 17, 2:51 pm)