Lines Matching refs:tasks
221 static bool test_state(unsigned int *tasks, enum psi_states state, bool oncpu) in test_state() argument
225 return unlikely(tasks[NR_IOWAIT]); in test_state()
227 return unlikely(tasks[NR_IOWAIT] && !tasks[NR_RUNNING]); in test_state()
229 return unlikely(tasks[NR_MEMSTALL]); in test_state()
231 return unlikely(tasks[NR_MEMSTALL] && in test_state()
232 tasks[NR_RUNNING] == tasks[NR_MEMSTALL_RUNNING]); in test_state()
234 return unlikely(tasks[NR_RUNNING] > oncpu); in test_state()
236 return unlikely(tasks[NR_RUNNING] && !oncpu); in test_state()
238 return tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || in test_state()
239 tasks[NR_RUNNING]; in test_state()
251 unsigned int tasks[NR_PSI_TASK_COUNTS]; in get_recent_times() local
267 memcpy(tasks, groupc->tasks, sizeof(groupc->tasks)); in get_recent_times()
305 reschedule = tasks[NR_RUNNING] + in get_recent_times()
306 tasks[NR_IOWAIT] + in get_recent_times()
307 tasks[NR_MEMSTALL] > 1; in get_recent_times()
823 if (groupc->tasks[t]) { in psi_group_change()
824 groupc->tasks[t]--; in psi_group_change()
827 cpu, t, groupc->tasks[0], in psi_group_change()
828 groupc->tasks[1], groupc->tasks[2], in psi_group_change()
829 groupc->tasks[3], clear, set); in psi_group_change()
836 groupc->tasks[t]++; in psi_group_change()
856 if (test_state(groupc->tasks, s, state_mask & PSI_ONCPU)) in psi_group_change()