diff options
Diffstat (limited to 'arch/powerpc/include/asm/paca.h')
-rw-r--r-- | arch/powerpc/include/asm/paca.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h index d8a693109c82..a011603d4079 100644 --- a/arch/powerpc/include/asm/paca.h +++ b/arch/powerpc/include/asm/paca.h | |||
@@ -14,6 +14,9 @@ | |||
14 | #define _ASM_POWERPC_PACA_H | 14 | #define _ASM_POWERPC_PACA_H |
15 | #ifdef __KERNEL__ | 15 | #ifdef __KERNEL__ |
16 | 16 | ||
17 | #ifdef CONFIG_PPC64 | ||
18 | |||
19 | #include <linux/init.h> | ||
17 | #include <asm/types.h> | 20 | #include <asm/types.h> |
18 | #include <asm/lppaca.h> | 21 | #include <asm/lppaca.h> |
19 | #include <asm/mmu.h> | 22 | #include <asm/mmu.h> |
@@ -145,8 +148,19 @@ struct paca_struct { | |||
145 | #endif | 148 | #endif |
146 | }; | 149 | }; |
147 | 150 | ||
148 | extern struct paca_struct paca[]; | 151 | extern struct paca_struct *paca; |
149 | extern void initialise_pacas(void); | 152 | extern __initdata struct paca_struct boot_paca; |
153 | extern void initialise_paca(struct paca_struct *new_paca, int cpu); | ||
154 | |||
155 | extern void allocate_pacas(void); | ||
156 | extern void free_unused_pacas(void); | ||
157 | |||
158 | #else /* CONFIG_PPC64 */ | ||
159 | |||
160 | static inline void allocate_pacas(void) { }; | ||
161 | static inline void free_unused_pacas(void) { }; | ||
162 | |||
163 | #endif /* CONFIG_PPC64 */ | ||
150 | 164 | ||
151 | #endif /* __KERNEL__ */ | 165 | #endif /* __KERNEL__ */ |
152 | #endif /* _ASM_POWERPC_PACA_H */ | 166 | #endif /* _ASM_POWERPC_PACA_H */ |