diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-02-14 01:08:19 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-30 23:34:28 +1100 |
commit | 59f577743d71bf796ceac10961bf6cfa5ca26786 (patch) | |
tree | 28b1d6c5ebef21b63fb5192ee2d790f2138a2be6 /arch/powerpc/include | |
parent | 9f593f131ed463dc571290980dd12cb9e56d8ea5 (diff) | |
download | linux-59f577743d71bf796ceac10961bf6cfa5ca26786.tar.gz linux-59f577743d71bf796ceac10961bf6cfa5ca26786.tar.bz2 linux-59f577743d71bf796ceac10961bf6cfa5ca26786.zip |
powerpc/64: Defer paca allocation until memory topology is discovered
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Rename the dummy allocate_pacas() to fix 32-bit build]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/paca.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/paca.h b/arch/powerpc/include/asm/paca.h index e89887f5e56f..2d04c5575631 100644 --- a/arch/powerpc/include/asm/paca.h +++ b/arch/powerpc/include/asm/paca.h @@ -255,12 +255,14 @@ extern void copy_mm_to_paca(struct mm_struct *mm); extern struct paca_struct **paca_ptrs; extern void initialise_paca(struct paca_struct *new_paca, int cpu); extern void setup_paca(struct paca_struct *new_paca); -extern void allocate_pacas(void); +extern void allocate_paca_ptrs(void); +extern void allocate_paca(int cpu); extern void free_unused_pacas(void); #else /* CONFIG_PPC64 */ -static inline void allocate_pacas(void) { }; +static inline void allocate_paca_ptrs(void) { }; +static inline void allocate_paca(int cpu) { }; static inline void free_unused_pacas(void) { }; #endif /* CONFIG_PPC64 */ |