diff options
-rw-r--r-- | arch/x86/kernel/smpboot_32.c | 16 | ||||
-rw-r--r-- | include/asm-x86/topology_32.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index 753d7acf4dac..239ada1c499c 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c | |||
@@ -466,19 +466,19 @@ extern struct { | |||
466 | #ifdef CONFIG_NUMA | 466 | #ifdef CONFIG_NUMA |
467 | 467 | ||
468 | /* which logical CPUs are on which nodes */ | 468 | /* which logical CPUs are on which nodes */ |
469 | cpumask_t node_2_cpu_mask[MAX_NUMNODES] __read_mostly = | 469 | cpumask_t node_to_cpumask_map[MAX_NUMNODES] __read_mostly = |
470 | { [0 ... MAX_NUMNODES-1] = CPU_MASK_NONE }; | 470 | { [0 ... MAX_NUMNODES-1] = CPU_MASK_NONE }; |
471 | EXPORT_SYMBOL(node_2_cpu_mask); | 471 | EXPORT_SYMBOL(node_to_cpumask_map); |
472 | /* which node each logical CPU is on */ | 472 | /* which node each logical CPU is on */ |
473 | int cpu_2_node[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = 0 }; | 473 | int cpu_to_node_map[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = 0 }; |
474 | EXPORT_SYMBOL(cpu_2_node); | 474 | EXPORT_SYMBOL(cpu_to_node_map); |
475 | 475 | ||
476 | /* set up a mapping between cpu and node. */ | 476 | /* set up a mapping between cpu and node. */ |
477 | static inline void map_cpu_to_node(int cpu, int node) | 477 | static inline void map_cpu_to_node(int cpu, int node) |
478 | { | 478 | { |
479 | printk("Mapping cpu %d to node %d\n", cpu, node); | 479 | printk("Mapping cpu %d to node %d\n", cpu, node); |
480 | cpu_set(cpu, node_2_cpu_mask[node]); | 480 | cpu_set(cpu, node_to_cpumask_map[node]); |
481 | cpu_2_node[cpu] = node; | 481 | cpu_to_node_map[cpu] = node; |
482 | } | 482 | } |
483 | 483 | ||
484 | /* undo a mapping between cpu and node. */ | 484 | /* undo a mapping between cpu and node. */ |
@@ -488,8 +488,8 @@ static inline void unmap_cpu_to_node(int cpu) | |||
488 | 488 | ||
489 | printk("Unmapping cpu %d from all nodes\n", cpu); | 489 | printk("Unmapping cpu %d from all nodes\n", cpu); |
490 | for (node = 0; node < MAX_NUMNODES; node ++) | 490 | for (node = 0; node < MAX_NUMNODES; node ++) |
491 | cpu_clear(cpu, node_2_cpu_mask[node]); | 491 | cpu_clear(cpu, node_to_cpumask_map[node]); |
492 | cpu_2_node[cpu] = 0; | 492 | cpu_to_node_map[cpu] = 0; |
493 | } | 493 | } |
494 | #else /* !CONFIG_NUMA */ | 494 | #else /* !CONFIG_NUMA */ |
495 | 495 | ||
diff --git a/include/asm-x86/topology_32.h b/include/asm-x86/topology_32.h index fdca80a851e2..e28dbdcc5670 100644 --- a/include/asm-x86/topology_32.h +++ b/include/asm-x86/topology_32.h | |||
@@ -39,13 +39,13 @@ | |||
39 | #include <linux/cpumask.h> | 39 | #include <linux/cpumask.h> |
40 | 40 | ||
41 | /* Mappings between logical cpu number and node number */ | 41 | /* Mappings between logical cpu number and node number */ |
42 | extern cpumask_t node_2_cpu_mask[]; | 42 | extern cpumask_t node_to_cpumask_map[]; |
43 | extern int cpu_2_node[]; | 43 | extern int cpu_to_node_map[]; |
44 | 44 | ||
45 | /* Returns the number of the node containing CPU 'cpu' */ | 45 | /* Returns the number of the node containing CPU 'cpu' */ |
46 | static inline int cpu_to_node(int cpu) | 46 | static inline int cpu_to_node(int cpu) |
47 | { | 47 | { |
48 | return cpu_2_node[cpu]; | 48 | return cpu_to_node_map[cpu]; |
49 | } | 49 | } |
50 | 50 | ||
51 | /* Returns the number of the node containing Node 'node'. This architecture is flat, | 51 | /* Returns the number of the node containing Node 'node'. This architecture is flat, |
@@ -55,7 +55,7 @@ static inline int cpu_to_node(int cpu) | |||
55 | /* Returns a bitmask of CPUs on Node 'node'. */ | 55 | /* Returns a bitmask of CPUs on Node 'node'. */ |
56 | static inline cpumask_t node_to_cpumask(int node) | 56 | static inline cpumask_t node_to_cpumask(int node) |
57 | { | 57 | { |
58 | return node_2_cpu_mask[node]; | 58 | return node_to_cpumask_map[node]; |
59 | } | 59 | } |
60 | 60 | ||
61 | /* Returns the number of the first CPU on Node 'node'. */ | 61 | /* Returns the number of the first CPU on Node 'node'. */ |