]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-i386/pda.h
[PATCH] i386: Page-align the GDT
[linux-2.6-omap-h63xx.git] / include / asm-i386 / pda.h
index b12d59a318b7cc46d581e347713e1964a4503ba7..aef7f732f77ee72f26cbf9ab693ba3601fe07ccf 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/stddef.h>
 #include <linux/types.h>
+#include <asm/percpu.h>
 
 struct i386_pda
 {
@@ -18,10 +19,8 @@ struct i386_pda
        struct pt_regs *irq_regs;
 };
 
-extern struct i386_pda *_cpu_pda[];
-
-#define cpu_pda(i)     (_cpu_pda[i])
-
+DECLARE_PER_CPU(struct i386_pda, _cpu_pda);
+#define cpu_pda(i)     (&per_cpu(_cpu_pda, (i)))
 #define pda_offset(field) offsetof(struct i386_pda, field)
 
 extern void __bad_pda_field(void);