aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/numa_64.c14
-rw-r--r--include/asm-x86/numa_64.h2
-rw-r--r--include/asm-x86/topology_64.h10
3 files changed, 13 insertions, 13 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index 4faed6a8f3a..29b69300aee 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
31struct memnode memnode; 31struct memnode memnode;
32 32
33unsigned char cpu_to_node[NR_CPUS] __read_mostly = { 33int 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};
36EXPORT_SYMBOL(cpu_to_node); 36EXPORT_SYMBOL(cpu_to_node_map);
37 37
38unsigned char apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { 38unsigned 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
42cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; 42cpumask_t node_to_cpumask_map[MAX_NUMNODES] __read_mostly;
43EXPORT_SYMBOL(node_to_cpumask); 43EXPORT_SYMBOL(node_to_cpumask_map);
44 44
45int numa_off __initdata; 45int numa_off __initdata;
46unsigned long __initdata nodemap_addr; 46unsigned 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
555void __cpuinit numa_set_node(int cpu, int node) 555void __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
561unsigned long __init numa_free_all_bootmem(void) 561unsigned long __init numa_free_all_bootmem(void)
diff --git a/include/asm-x86/numa_64.h b/include/asm-x86/numa_64.h
index e6bc0b5dfe3..c3c20db1fba 100644
--- a/include/asm-x86/numa_64.h
+++ b/include/asm-x86/numa_64.h
@@ -32,7 +32,7 @@ extern void __init init_cpu_to_node(void);
32 32
33static inline void clear_node_cpumask(int cpu) 33static inline void clear_node_cpumask(int cpu)
34{ 34{
35 clear_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); 35 clear_bit(cpu, &node_to_cpumask_map[cpu_to_node(cpu)]);
36} 36}
37 37
38#else 38#else
diff --git a/include/asm-x86/topology_64.h b/include/asm-x86/topology_64.h
index 407b22d4e3b..cf529341b16 100644
--- a/include/asm-x86/topology_64.h
+++ b/include/asm-x86/topology_64.h
@@ -7,8 +7,8 @@
7#include <asm/mpspec.h> 7#include <asm/mpspec.h>
8#include <linux/bitops.h> 8#include <linux/bitops.h>
9 9
10extern unsigned char cpu_to_node[]; 10extern int cpu_to_node_map[];
11extern cpumask_t node_to_cpumask[]; 11extern cpumask_t node_to_cpumask_map[];
12 12
13#ifdef CONFIG_ACPI_NUMA 13#ifdef CONFIG_ACPI_NUMA
14extern int __node_distance(int, int); 14extern int __node_distance(int, int);
@@ -16,10 +16,10 @@ extern int __node_distance(int, int);
16/* #else fallback version */ 16/* #else fallback version */
17#endif 17#endif
18 18
19#define cpu_to_node(cpu) (cpu_to_node[cpu]) 19#define cpu_to_node(cpu) (cpu_to_node_map[cpu])
20#define parent_node(node) (node) 20#define parent_node(node) (node)
21#define node_to_first_cpu(node) (first_cpu(node_to_cpumask[node])) 21#define node_to_first_cpu(node) (first_cpu(node_to_cpumask_map[node]))
22#define node_to_cpumask(node) (node_to_cpumask[node]) 22#define node_to_cpumask(node) (node_to_cpumask_map[node])
23#define pcibus_to_node(bus) ((struct pci_sysdata *)((bus)->sysdata))->node 23#define pcibus_to_node(bus) ((struct pci_sysdata *)((bus)->sysdata))->node
24#define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus)); 24#define pcibus_to_cpumask(bus) node_to_cpumask(pcibus_to_node(bus));
25 25