|
@@ -206,23 +206,7 @@ struct paca_struct {
|
|
|
#endif
|
|
|
};
|
|
|
|
|
|
-#ifdef CONFIG_PPC_BOOK3S
|
|
|
-static inline void copy_mm_to_paca(mm_context_t *context)
|
|
|
-{
|
|
|
- get_paca()->mm_ctx_id = context->id;
|
|
|
-#ifdef CONFIG_PPC_MM_SLICES
|
|
|
- get_paca()->mm_ctx_low_slices_psize = context->low_slices_psize;
|
|
|
- memcpy(&get_paca()->mm_ctx_high_slices_psize,
|
|
|
- &context->high_slices_psize, SLICE_ARRAY_SIZE);
|
|
|
-#else
|
|
|
- get_paca()->mm_ctx_user_psize = context->user_psize;
|
|
|
- get_paca()->mm_ctx_sllp = context->sllp;
|
|
|
-#endif
|
|
|
-}
|
|
|
-#else
|
|
|
-static inline void copy_mm_to_paca(mm_context_t *context){}
|
|
|
-#endif
|
|
|
-
|
|
|
+extern void copy_mm_to_paca(struct mm_struct *mm);
|
|
|
extern struct paca_struct *paca;
|
|
|
extern void initialise_paca(struct paca_struct *new_paca, int cpu);
|
|
|
extern void setup_paca(struct paca_struct *new_paca);
|