diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-01-18 10:38:59 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-18 10:38:59 -0500 |
commit | e7a22c1ebcc1caa8178df1819d05128bb5b45ab9 (patch) | |
tree | 7769b1263850c97fa244a48ad9187ce0d74e1965 /arch/x86/include/asm | |
parent | 5689553076c4a67b83426b076082c63085b7567a (diff) |
x86-64: Move nodenumber from PDA to per-cpu.
tj: * s/nodenumber/node_number/
* removed now unused pda variable from pda_init()
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/pda.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/topology.h | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pda.h b/arch/x86/include/asm/pda.h index 4527d70314d4..b30ef6bddc43 100644 --- a/arch/x86/include/asm/pda.h +++ b/arch/x86/include/asm/pda.h | |||
@@ -22,7 +22,6 @@ struct x8664_pda { | |||
22 | /* gcc-ABI: this canary MUST be at | 22 | /* gcc-ABI: this canary MUST be at |
23 | offset 40!!! */ | 23 | offset 40!!! */ |
24 | #endif | 24 | #endif |
25 | short nodenumber; /* number of current node (32k max) */ | ||
26 | short in_bootmem; /* pda lives in bootmem */ | 25 | short in_bootmem; /* pda lives in bootmem */ |
27 | short isidle; | 26 | short isidle; |
28 | } ____cacheline_aligned_in_smp; | 27 | } ____cacheline_aligned_in_smp; |
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index 87ca3fd86e88..ffea1fe03a99 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -83,7 +83,8 @@ extern cpumask_t *node_to_cpumask_map; | |||
83 | DECLARE_EARLY_PER_CPU(int, x86_cpu_to_node_map); | 83 | DECLARE_EARLY_PER_CPU(int, x86_cpu_to_node_map); |
84 | 84 | ||
85 | /* Returns the number of the current Node. */ | 85 | /* Returns the number of the current Node. */ |
86 | #define numa_node_id() read_pda(nodenumber) | 86 | DECLARE_PER_CPU(int, node_number); |
87 | #define numa_node_id() percpu_read(node_number) | ||
87 | 88 | ||
88 | #ifdef CONFIG_DEBUG_PER_CPU_MAPS | 89 | #ifdef CONFIG_DEBUG_PER_CPU_MAPS |
89 | extern int cpu_to_node(int cpu); | 90 | extern int cpu_to_node(int cpu); |