diff options
Diffstat (limited to 'arch/x86/include/asm/pda.h')
-rw-r--r-- | arch/x86/include/asm/pda.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pda.h b/arch/x86/include/asm/pda.h index e91558e37850..66ae1043393d 100644 --- a/arch/x86/include/asm/pda.h +++ b/arch/x86/include/asm/pda.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/cache.h> | 7 | #include <linux/cache.h> |
8 | #include <linux/threads.h> | 8 | #include <linux/threads.h> |
9 | #include <asm/page.h> | 9 | #include <asm/page.h> |
10 | #include <asm/percpu.h> | ||
10 | 11 | ||
11 | /* Per processor datastructure. %gs points to it while the kernel runs */ | 12 | /* Per processor datastructure. %gs points to it while the kernel runs */ |
12 | struct x8664_pda { | 13 | struct x8664_pda { |
@@ -39,10 +40,10 @@ struct x8664_pda { | |||
39 | unsigned irq_spurious_count; | 40 | unsigned irq_spurious_count; |
40 | } ____cacheline_aligned_in_smp; | 41 | } ____cacheline_aligned_in_smp; |
41 | 42 | ||
42 | extern struct x8664_pda *_cpu_pda[NR_CPUS]; | 43 | DECLARE_PER_CPU(struct x8664_pda, __pda); |
43 | extern void pda_init(int); | 44 | extern void pda_init(int); |
44 | 45 | ||
45 | #define cpu_pda(i) (_cpu_pda[i]) | 46 | #define cpu_pda(cpu) (&per_cpu(__pda, cpu)) |
46 | 47 | ||
47 | /* | 48 | /* |
48 | * There is no fast way to get the base address of the PDA, all the accesses | 49 | * There is no fast way to get the base address of the PDA, all the accesses |