Lines Matching refs:tasks
221 static u32 test_states(unsigned int *tasks, u32 state_mask) in test_states() argument
225 if (tasks[NR_IOWAIT]) { in test_states()
227 if (!tasks[NR_RUNNING]) in test_states()
231 if (tasks[NR_MEMSTALL]) { in test_states()
233 if (tasks[NR_RUNNING] == tasks[NR_MEMSTALL_RUNNING]) in test_states()
237 if (tasks[NR_RUNNING] > oncpu) in test_states()
240 if (tasks[NR_RUNNING] && !oncpu) in test_states()
243 if (tasks[NR_IOWAIT] || tasks[NR_MEMSTALL] || tasks[NR_RUNNING]) in test_states()
255 unsigned int tasks[NR_PSI_TASK_COUNTS]; in get_recent_times() local
271 memcpy(tasks, groupc->tasks, sizeof(groupc->tasks)); in get_recent_times()
309 reschedule = tasks[NR_RUNNING] + in get_recent_times()
310 tasks[NR_IOWAIT] + in get_recent_times()
311 tasks[NR_MEMSTALL] > 1; in get_recent_times()
818 if (groupc->tasks[t]) { in psi_group_change()
819 groupc->tasks[t]--; in psi_group_change()
822 cpu, t, groupc->tasks[0], in psi_group_change()
823 groupc->tasks[1], groupc->tasks[2], in psi_group_change()
824 groupc->tasks[3], clear, set); in psi_group_change()
831 groupc->tasks[t]++; in psi_group_change()
850 state_mask = test_states(groupc->tasks, state_mask); in psi_group_change()