aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:30:38 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:38 -0500
commitfe21a445b98c9d52f02f3412d7a2fd39784f3b22 (patch)
tree501d6bfe7997d2329cd0687b9295bebc6a866122 /arch
parent7462894a7cb03b54b9139f31fab5928366752a78 (diff)
x86: adjust numa 32 namespace
Use the 64bit numa variable names for numa32 as well. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/smpboot_32.c16
1 files changed, 8 insertions, 8 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 */
469cpumask_t node_2_cpu_mask[MAX_NUMNODES] __read_mostly = 469cpumask_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 };
471EXPORT_SYMBOL(node_2_cpu_mask); 471EXPORT_SYMBOL(node_to_cpumask_map);
472/* which node each logical CPU is on */ 472/* which node each logical CPU is on */
473int cpu_2_node[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = 0 }; 473int cpu_to_node_map[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = 0 };
474EXPORT_SYMBOL(cpu_2_node); 474EXPORT_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. */
477static inline void map_cpu_to_node(int cpu, int node) 477static 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