Skip to content

Commit

Permalink
x86: fixup NR-CPUS patch for numa
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
travis@sgi.com authored and Ingo Molnar committed Jan 30, 2008
1 parent 28c6075 commit 316390b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -88,7 +86,7 @@ static int __init allocate_cachealigned_memnodemap(void)
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;
Expand Down

0 comments on commit 316390b

Please sign in to comment.