Lines Matching refs:next
51 struct mm_struct *next, struct task_struct *tsk) in switch_mm_irqs_off() argument
53 if (prev != next) { in switch_mm_irqs_off()
57 spinlock_t *pgd_lock = &next->page_table_lock; in switch_mm_irqs_off()
60 mtctl(__pa(next->pgd), 25); in switch_mm_irqs_off()
61 load_context(next->context); in switch_mm_irqs_off()
66 struct mm_struct *next, struct task_struct *tsk) in switch_mm() argument
70 if (prev == next) in switch_mm()
74 switch_mm_irqs_off(prev, next, tsk); in switch_mm()
80 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) in activate_mm() argument
90 BUG_ON(next == &init_mm); /* Should never happen */ in activate_mm()
92 if (next->context.space_id == 0) in activate_mm()
93 next->context.space_id = alloc_sid(); in activate_mm()
95 switch_mm(prev,next,current); in activate_mm()