diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 07:30:38 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:38 -0500 |
commit | 7462894a7cb03b54b9139f31fab5928366752a78 (patch) | |
tree | c524bba53a1d76fe30f4b718308acb98eb58fd06 /arch/x86/mm/numa_64.c | |
parent | e3cfe529dd87dd3354789546676fef2e808822e4 (diff) |
x86: fixup numa 64 namespace
Using a variable name, which is the same as a macro name is not
really smart. Change the variable names and fixup all users.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/numa_64.c')
-rw-r--r-- | arch/x86/mm/numa_64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c index 4faed6a8f3ae..29b69300aee2 100644 --- a/arch/x86/mm/numa_64.c +++ b/arch/x86/mm/numa_64.c | |||
@@ -30,17 +30,17 @@ bootmem_data_t plat_node_bdata[MAX_NUMNODES]; | |||
30 | 30 | ||
31 | struct memnode memnode; | 31 | struct memnode memnode; |
32 | 32 | ||
33 | unsigned char cpu_to_node[NR_CPUS] __read_mostly = { | 33 | int cpu_to_node_map[NR_CPUS] __read_mostly = { |
34 | [0 ... NR_CPUS-1] = NUMA_NO_NODE | 34 | [0 ... NR_CPUS-1] = NUMA_NO_NODE |
35 | }; | 35 | }; |
36 | EXPORT_SYMBOL(cpu_to_node); | 36 | EXPORT_SYMBOL(cpu_to_node_map); |
37 | 37 | ||
38 | unsigned char apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { | 38 | unsigned char apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { |
39 | [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE | 39 | [0 ... MAX_LOCAL_APIC-1] = NUMA_NO_NODE |
40 | }; | 40 | }; |
41 | 41 | ||
42 | cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; | 42 | cpumask_t node_to_cpumask_map[MAX_NUMNODES] __read_mostly; |
43 | EXPORT_SYMBOL(node_to_cpumask); | 43 | EXPORT_SYMBOL(node_to_cpumask_map); |
44 | 44 | ||
45 | int numa_off __initdata; | 45 | int numa_off __initdata; |
46 | unsigned long __initdata nodemap_addr; | 46 | unsigned long __initdata nodemap_addr; |
@@ -542,20 +542,20 @@ void __init numa_initmem_init(unsigned long start_pfn, unsigned long end_pfn) | |||
542 | node_set(0, node_possible_map); | 542 | node_set(0, node_possible_map); |
543 | for (i = 0; i < NR_CPUS; i++) | 543 | for (i = 0; i < NR_CPUS; i++) |
544 | numa_set_node(i, 0); | 544 | numa_set_node(i, 0); |
545 | node_to_cpumask[0] = cpumask_of_cpu(0); | 545 | node_to_cpumask_map[0] = cpumask_of_cpu(0); |
546 | e820_register_active_regions(0, start_pfn, end_pfn); | 546 | e820_register_active_regions(0, start_pfn, end_pfn); |
547 | setup_node_bootmem(0, start_pfn << PAGE_SHIFT, end_pfn << PAGE_SHIFT); | 547 | setup_node_bootmem(0, start_pfn << PAGE_SHIFT, end_pfn << PAGE_SHIFT); |
548 | } | 548 | } |
549 | 549 | ||
550 | __cpuinit void numa_add_cpu(int cpu) | 550 | __cpuinit void numa_add_cpu(int cpu) |
551 | { | 551 | { |
552 | set_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); | 552 | set_bit(cpu, &node_to_cpumask_map[cpu_to_node(cpu)]); |
553 | } | 553 | } |
554 | 554 | ||
555 | void __cpuinit numa_set_node(int cpu, int node) | 555 | void __cpuinit numa_set_node(int cpu, int node) |
556 | { | 556 | { |
557 | cpu_pda(cpu)->nodenumber = node; | 557 | cpu_pda(cpu)->nodenumber = node; |
558 | cpu_to_node(cpu) = node; | 558 | cpu_to_node_map[cpu] = node; |
559 | } | 559 | } |
560 | 560 | ||
561 | unsigned long __init numa_free_all_bootmem(void) | 561 | unsigned long __init numa_free_all_bootmem(void) |