Lines Matching refs:next
53 struct mm_struct *next, struct task_struct *tsk) in switch_mm_irqs_off() argument
55 if (prev != next) { in switch_mm_irqs_off()
59 spinlock_t *pgd_lock = &next->page_table_lock; in switch_mm_irqs_off()
62 mtctl(__pa(next->pgd), 25); in switch_mm_irqs_off()
63 load_context(next->context); in switch_mm_irqs_off()
68 struct mm_struct *next, struct task_struct *tsk) in switch_mm() argument
72 if (prev == next) in switch_mm()
76 switch_mm_irqs_off(prev, next, tsk); in switch_mm()
83 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) in activate_mm() argument
93 BUG_ON(next == &init_mm); /* Should never happen */ in activate_mm()
95 if (next->context == 0) in activate_mm()
96 next->context = alloc_sid(); in activate_mm()
98 switch_mm(prev,next,current); in activate_mm()