Lines Matching refs:prev
916 void psi_task_switch(struct task_struct *prev, struct task_struct *next,
920 int cpu = task_cpu(prev);
927 * ancestors with @prev, those will already have @prev's
942 if (prev->pid) {
954 if (prev->in_memstall)
956 if (prev->in_iowait)
965 if (unlikely((prev->flags & PF_WQ_WORKER) &&
966 wq_worker_last_func(prev) == psi_avgs_work))
970 psi_flags_change(prev, clear, set);
972 group = task_psi_group(prev);
981 * any other differences between the two tasks (e.g. prev goes
985 if ((prev->psi_flags ^ next->psi_flags) & ~TSK_ONCPU) {
1154 * deactivating prev and switching to next. Because the psi