Lines Matching refs:mm
24 void __check_vmalloc_seq(struct mm_struct *mm);
28 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
30 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
32 atomic64_set(&mm->context.id, 0); in init_new_context()
37 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
40 static inline void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask() argument
50 static inline void check_and_switch_context(struct mm_struct *mm, in check_and_switch_context() argument
53 if (unlikely(mm->context.vmalloc_seq != init_mm.context.vmalloc_seq)) in check_and_switch_context()
54 __check_vmalloc_seq(mm); in check_and_switch_context()
64 mm->context.switch_pending = 1; in check_and_switch_context()
66 cpu_switch_mm(mm->pgd, mm); in check_and_switch_context()
74 struct mm_struct *mm = current->mm; in finish_arch_post_lock_switch() local
76 if (mm && mm->context.switch_pending) { in finish_arch_post_lock_switch()
84 if (mm->context.switch_pending) { in finish_arch_post_lock_switch()
85 mm->context.switch_pending = 0; in finish_arch_post_lock_switch()
86 cpu_switch_mm(mm->pgd, mm); in finish_arch_post_lock_switch()
96 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context() argument
104 #define destroy_context(mm) do { } while(0) argument
117 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb() argument
152 #define deactivate_mm(tsk,mm) do { } while (0) argument