Lines Matching refs:tasks
226 static bool test_state(unsigned int *tasks, enum psi_states state) in test_state() argument
230 return unlikely(tasks[NR_IOWAIT]); in test_state()
232 return unlikely(tasks[NR_IOWAIT] && !tasks[NR_RUNNING]); in test_state()
234 return unlikely(tasks[NR_MEMSTALL]); in test_state()
236 return unlikely(tasks[NR_MEMSTALL] && !tasks[NR_RUNNING]); in test_state()
238 return unlikely(tasks[NR_RUNNING] > tasks[NR_ONCPU]); in test_state()
240 return unlikely(tasks[NR_RUNNING] && !tasks[NR_ONCPU]); in test_state()
242 return tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || in test_state()
243 tasks[NR_RUNNING]; in test_state()
710 if (groupc->tasks[t]) { in psi_group_change()
711 groupc->tasks[t]--; in psi_group_change()
714 cpu, t, groupc->tasks[0], in psi_group_change()
715 groupc->tasks[1], groupc->tasks[2], in psi_group_change()
716 groupc->tasks[3], clear, set); in psi_group_change()
723 groupc->tasks[t]++; in psi_group_change()
727 if (test_state(groupc->tasks, s)) in psi_group_change()
739 if (unlikely(groupc->tasks[NR_ONCPU] && cpu_curr(cpu)->in_memstall)) in psi_group_change()
844 per_cpu_ptr(group->pcpu, cpu)->tasks[NR_ONCPU]) { in psi_task_switch()