diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-01-18 10:38:58 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-18 10:38:58 -0500 |
commit | ea9279066de44053d0c20ea855bc9f4706652d84 (patch) | |
tree | 73c19b9112375ee0df8373b004105f05e1a196f4 /arch/x86/include/asm/smp.h | |
parent | 92d65b2371d86d40807e1dbfdccadc4d501edcde (diff) |
x86-64: Move cpu number from PDA to per-cpu and consolidate with 32-bit.
tj: moved cpu_number definition out of CONFIG_HAVE_SETUP_PER_CPU_AREA
for voyager.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/smp.h')
-rw-r--r-- | arch/x86/include/asm/smp.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index c7bbbbe65d3f..68636e767a91 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h | |||
@@ -25,9 +25,7 @@ extern unsigned int num_processors; | |||
25 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | 25 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); |
26 | DECLARE_PER_CPU(cpumask_t, cpu_core_map); | 26 | DECLARE_PER_CPU(cpumask_t, cpu_core_map); |
27 | DECLARE_PER_CPU(u16, cpu_llc_id); | 27 | DECLARE_PER_CPU(u16, cpu_llc_id); |
28 | #ifdef CONFIG_X86_32 | ||
29 | DECLARE_PER_CPU(int, cpu_number); | 28 | DECLARE_PER_CPU(int, cpu_number); |
30 | #endif | ||
31 | 29 | ||
32 | static inline struct cpumask *cpu_sibling_mask(int cpu) | 30 | static inline struct cpumask *cpu_sibling_mask(int cpu) |
33 | { | 31 | { |
@@ -164,7 +162,7 @@ extern unsigned disabled_cpus __cpuinitdata; | |||
164 | extern int safe_smp_processor_id(void); | 162 | extern int safe_smp_processor_id(void); |
165 | 163 | ||
166 | #elif defined(CONFIG_X86_64_SMP) | 164 | #elif defined(CONFIG_X86_64_SMP) |
167 | #define raw_smp_processor_id() read_pda(cpunumber) | 165 | #define raw_smp_processor_id() (percpu_read(cpu_number)) |
168 | 166 | ||
169 | #define stack_smp_processor_id() \ | 167 | #define stack_smp_processor_id() \ |
170 | ({ \ | 168 | ({ \ |