Lines Matching refs:prev
926 void psi_task_switch(struct task_struct *prev, struct task_struct *next, in psi_task_switch() argument
930 int cpu = task_cpu(prev); in psi_task_switch()
954 if (prev->pid) { in psi_task_switch()
966 if (prev->in_memstall) in psi_task_switch()
968 if (prev->in_iowait) in psi_task_switch()
977 if (unlikely((prev->flags & PF_WQ_WORKER) && in psi_task_switch()
978 wq_worker_last_func(prev) == psi_avgs_work)) in psi_task_switch()
982 psi_flags_change(prev, clear, set); in psi_task_switch()
984 for_each_group(group, task_psi_group(prev)) { in psi_task_switch()
996 if ((prev->psi_flags ^ next->psi_flags) & ~TSK_ONCPU) { in psi_task_switch()
1006 void psi_account_irqtime(struct rq *rq, struct task_struct *curr, struct task_struct *prev) in psi_account_irqtime() argument
1021 if (prev && task_psi_group(prev) == task_psi_group(curr)) in psi_account_irqtime()