diff options
Diffstat (limited to 'arch/powerpc/kernel/paca.c')
-rw-r--r-- | arch/powerpc/kernel/paca.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/paca.c b/arch/powerpc/kernel/paca.c index 2ff2b8a19f71..d6597038931d 100644 --- a/arch/powerpc/kernel/paca.c +++ b/arch/powerpc/kernel/paca.c | |||
@@ -90,7 +90,7 @@ static inline void free_lppacas(void) { } | |||
90 | 90 | ||
91 | #endif /* CONFIG_PPC_BOOK3S */ | 91 | #endif /* CONFIG_PPC_BOOK3S */ |
92 | 92 | ||
93 | #ifdef CONFIG_PPC_STD_MMU_64 | 93 | #ifdef CONFIG_PPC_BOOK3S_64 |
94 | 94 | ||
95 | /* | 95 | /* |
96 | * 3 persistent SLBs are registered here. The buffer will be zero | 96 | * 3 persistent SLBs are registered here. The buffer will be zero |
@@ -135,11 +135,11 @@ static struct slb_shadow * __init init_slb_shadow(int cpu) | |||
135 | return s; | 135 | return s; |
136 | } | 136 | } |
137 | 137 | ||
138 | #else /* CONFIG_PPC_STD_MMU_64 */ | 138 | #else /* !CONFIG_PPC_BOOK3S_64 */ |
139 | 139 | ||
140 | static void __init allocate_slb_shadows(int nr_cpus, int limit) { } | 140 | static void __init allocate_slb_shadows(int nr_cpus, int limit) { } |
141 | 141 | ||
142 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 142 | #endif /* CONFIG_PPC_BOOK3S_64 */ |
143 | 143 | ||
144 | /* The Paca is an array with one entry per processor. Each contains an | 144 | /* The Paca is an array with one entry per processor. Each contains an |
145 | * lppaca, which contains the information shared between the | 145 | * lppaca, which contains the information shared between the |
@@ -170,9 +170,9 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu) | |||
170 | new_paca->kexec_state = KEXEC_STATE_NONE; | 170 | new_paca->kexec_state = KEXEC_STATE_NONE; |
171 | new_paca->__current = &init_task; | 171 | new_paca->__current = &init_task; |
172 | new_paca->data_offset = 0xfeeeeeeeeeeeeeeeULL; | 172 | new_paca->data_offset = 0xfeeeeeeeeeeeeeeeULL; |
173 | #ifdef CONFIG_PPC_STD_MMU_64 | 173 | #ifdef CONFIG_PPC_BOOK3S_64 |
174 | new_paca->slb_shadow_ptr = init_slb_shadow(cpu); | 174 | new_paca->slb_shadow_ptr = init_slb_shadow(cpu); |
175 | #endif /* CONFIG_PPC_STD_MMU_64 */ | 175 | #endif |
176 | 176 | ||
177 | #ifdef CONFIG_PPC_BOOK3E | 177 | #ifdef CONFIG_PPC_BOOK3E |
178 | /* For now -- if we have threads this will be adjusted later */ | 178 | /* For now -- if we have threads this will be adjusted later */ |
@@ -262,8 +262,8 @@ void copy_mm_to_paca(struct mm_struct *mm) | |||
262 | 262 | ||
263 | get_paca()->mm_ctx_id = context->id; | 263 | get_paca()->mm_ctx_id = context->id; |
264 | #ifdef CONFIG_PPC_MM_SLICES | 264 | #ifdef CONFIG_PPC_MM_SLICES |
265 | VM_BUG_ON(!mm->context.addr_limit); | 265 | VM_BUG_ON(!mm->context.slb_addr_limit); |
266 | get_paca()->addr_limit = mm->context.addr_limit; | 266 | get_paca()->mm_ctx_slb_addr_limit = mm->context.slb_addr_limit; |
267 | get_paca()->mm_ctx_low_slices_psize = context->low_slices_psize; | 267 | get_paca()->mm_ctx_low_slices_psize = context->low_slices_psize; |
268 | memcpy(&get_paca()->mm_ctx_high_slices_psize, | 268 | memcpy(&get_paca()->mm_ctx_high_slices_psize, |
269 | &context->high_slices_psize, TASK_SLICE_ARRAY_SZ(mm)); | 269 | &context->high_slices_psize, TASK_SLICE_ARRAY_SZ(mm)); |
@@ -271,7 +271,7 @@ void copy_mm_to_paca(struct mm_struct *mm) | |||
271 | get_paca()->mm_ctx_user_psize = context->user_psize; | 271 | get_paca()->mm_ctx_user_psize = context->user_psize; |
272 | get_paca()->mm_ctx_sllp = context->sllp; | 272 | get_paca()->mm_ctx_sllp = context->sllp; |
273 | #endif | 273 | #endif |
274 | #else /* CONFIG_PPC_BOOK3S */ | 274 | #else /* !CONFIG_PPC_BOOK3S */ |
275 | return; | 275 | return; |
276 | #endif | 276 | #endif |
277 | } | 277 | } |