Lines Matching defs:next
13 struct mm_struct *next)
33 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
38 if (likely(prev != next)) {
41 percpu_write(cpu_tlbstate.active_mm, next);
43 cpumask_set_cpu(cpu, mm_cpumask(next));
46 load_cr3(next->pgd);
54 if (unlikely(prev->context.ldt != next->context.ldt))
55 load_LDT_nolock(&next->context);
60 BUG_ON(percpu_read(cpu_tlbstate.active_mm) != next);
62 if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next))) {
67 load_cr3(next->pgd);
68 load_LDT_nolock(&next->context);
74 #define activate_mm(prev, next) \
76 paravirt_activate_mm((prev), (next)); \
77 switch_mm((prev), (next), NULL); \