Lines Matching refs:mm
2091 if (p->mm && printk_ratelimit()) { in select_fallback_rq()
3188 struct mm_struct *mm = rq->prev_mm; in finish_task_switch() local
3241 if (mm) { in finish_task_switch()
3242 membarrier_mm_sync_core_before_usermode(mm); in finish_task_switch()
3243 mmdrop(mm); in finish_task_switch()
3353 if (!next->mm) { // to kernel in context_switch()
3357 if (prev->mm) // from user in context_switch()
3362 membarrier_switch_mm(rq, prev->active_mm, next->mm); in context_switch()
3371 switch_mm_irqs_off(prev->active_mm, next->mm, next); in context_switch()
3373 if (!prev->mm) { // from kernel in context_switch()
4787 if ((p->mm && attr->sched_priority > MAX_USER_RT_PRIO-1) || in __sched_setscheduler()
4788 (!p->mm && attr->sched_priority > MAX_RT_PRIO-1)) in __sched_setscheduler()
6180 struct mm_struct *mm = current->active_mm; in idle_task_exit() local
6184 if (mm != &init_mm) { in idle_task_exit()
6185 switch_mm(mm, &init_mm, current); in idle_task_exit()
6189 mmdrop(mm); in idle_task_exit()