Lines Matching refs:mm
10 * Derived from previous arch/powerpc/mm/mmu_context.c
21 * also clear mm->cpu_vm_mask bits when processes are migrated
25 #include <linux/mm.h>
38 #include <mm/mmu_decl.h>
99 struct mm_struct *mm;
106 /* Pick up the victim mm */
107 mm = context_mm[id];
112 if (mm->context.active) {
119 /* Mark this mm has having no context anymore */
120 mm->context.id = MMU_NO_CONTEXT;
122 /* Mark it stale on all CPUs that used this mm. For threaded
127 for_each_cpu(cpu, mm_cpumask(mm)) {
151 struct mm_struct *mm;
156 /* Pick up the victim mm */
157 mm = context_mm[id];
159 /* Mark this mm as having no context anymore */
160 mm->context.id = MMU_NO_CONTEXT;
184 struct mm_struct *mm;
187 /* Pick up the victim mm */
188 mm = context_mm[id];
191 local_flush_tlb_mm(mm);
193 /* Mark this mm has having no context anymore */
194 mm->context.id = MMU_NO_CONTEXT;
318 int init_new_context(struct task_struct *t, struct mm_struct *mm)
320 mm->context.id = MMU_NO_CONTEXT;
321 mm->context.active = 0;
322 pte_frag_set(&mm->context, NULL);
329 void destroy_context(struct mm_struct *mm)
334 if (mm->context.id == MMU_NO_CONTEXT)
337 WARN_ON(mm->context.active != 0);
340 id = mm->context.id;
343 mm->context.id = MMU_NO_CONTEXT;