Lines Matching refs:next
52 struct mm_struct *next, struct task_struct *tsk) in switch_mm_irqs_off() argument
54 if (prev != next) { in switch_mm_irqs_off()
55 mtctl(__pa(next->pgd), 25); in switch_mm_irqs_off()
56 load_context(next->context); in switch_mm_irqs_off()
61 struct mm_struct *next, struct task_struct *tsk) in switch_mm() argument
65 if (prev == next) in switch_mm()
69 switch_mm_irqs_off(prev, next, tsk); in switch_mm()
76 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) in activate_mm() argument
86 BUG_ON(next == &init_mm); /* Should never happen */ in activate_mm()
88 if (next->context == 0) in activate_mm()
89 next->context = alloc_sid(); in activate_mm()
91 switch_mm(prev,next,current); in activate_mm()