aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/topology.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-01-13 06:41:34 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-16 08:18:17 -0500
commitf10fcd47120e80f66665567dbe17f5071c7aef52 (patch)
tree825281816d434a6b3ba596bb922d7a4a77d91448 /arch/x86/include/asm/topology.h
parent7de6883faad71e3a253d55b9e1a47b89ebce0a31 (diff)
x86: make early_per_cpu() a lvalue and use it
Make early_per_cpu() a lvalue as per_cpu() is and use it where applicable. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/topology.h')
-rw-r--r--arch/x86/include/asm/topology.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index 4e2f2e0aab27..87ca3fd86e88 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -102,10 +102,7 @@ static inline int cpu_to_node(int cpu)
102/* Same function but used if called before per_cpu areas are setup */ 102/* Same function but used if called before per_cpu areas are setup */
103static inline int early_cpu_to_node(int cpu) 103static inline int early_cpu_to_node(int cpu)
104{ 104{
105 if (early_per_cpu_ptr(x86_cpu_to_node_map)) 105 return early_per_cpu(x86_cpu_to_node_map, cpu);
106 return early_per_cpu_ptr(x86_cpu_to_node_map)[cpu];
107
108 return per_cpu(x86_cpu_to_node_map, cpu);
109} 106}
110 107
111/* Returns a pointer to the cpumask of CPUs on Node 'node'. */ 108/* Returns a pointer to the cpumask of CPUs on Node 'node'. */