Lines Matching refs:tasks
217 static bool test_state(unsigned int *tasks, enum psi_states state, bool oncpu) in test_state() argument
221 return unlikely(tasks[NR_IOWAIT]); in test_state()
223 return unlikely(tasks[NR_IOWAIT] && !tasks[NR_RUNNING]); in test_state()
225 return unlikely(tasks[NR_MEMSTALL]); in test_state()
227 return unlikely(tasks[NR_MEMSTALL] && in test_state()
228 tasks[NR_RUNNING] == tasks[NR_MEMSTALL_RUNNING]); in test_state()
230 return unlikely(tasks[NR_RUNNING] > oncpu); in test_state()
232 return unlikely(tasks[NR_RUNNING] && !oncpu); in test_state()
234 return tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || in test_state()
235 tasks[NR_RUNNING]; in test_state()
776 if (groupc->tasks[t]) { in psi_group_change()
777 groupc->tasks[t]--; in psi_group_change()
780 cpu, t, groupc->tasks[0], in psi_group_change()
781 groupc->tasks[1], groupc->tasks[2], in psi_group_change()
782 groupc->tasks[3], clear, set); in psi_group_change()
789 groupc->tasks[t]++; in psi_group_change()
809 if (test_state(groupc->tasks, s, state_mask & PSI_ONCPU)) in psi_group_change()