aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/pda.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/pda.h')
-rw-r--r--include/asm-i386/pda.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-i386/pda.h b/include/asm-i386/pda.h
index b12d59a318b7..aef7f732f77e 100644
--- a/include/asm-i386/pda.h
+++ b/include/asm-i386/pda.h
@@ -8,6 +8,7 @@
8 8
9#include <linux/stddef.h> 9#include <linux/stddef.h>
10#include <linux/types.h> 10#include <linux/types.h>
11#include <asm/percpu.h>
11 12
12struct i386_pda 13struct i386_pda
13{ 14{
@@ -18,10 +19,8 @@ struct i386_pda
18 struct pt_regs *irq_regs; 19 struct pt_regs *irq_regs;
19}; 20};
20 21
21extern struct i386_pda *_cpu_pda[]; 22DECLARE_PER_CPU(struct i386_pda, _cpu_pda);
22 23#define cpu_pda(i) (&per_cpu(_cpu_pda, (i)))
23#define cpu_pda(i) (_cpu_pda[i])
24
25#define pda_offset(field) offsetof(struct i386_pda, field) 24#define pda_offset(field) offsetof(struct i386_pda, field)
26 25
27extern void __bad_pda_field(void); 26extern void __bad_pda_field(void);