Lines Matching refs:s
247 enum psi_states s; in get_recent_times() local
263 for (s = 0; s < NR_PSI_STATES; s++) { in get_recent_times()
274 if (state_mask & (1 << s)) in get_recent_times()
275 times[s] += now - state_start; in get_recent_times()
277 delta = times[s] - groupc->times_prev[aggregator][s]; in get_recent_times()
278 groupc->times_prev[aggregator][s] = times[s]; in get_recent_times()
280 times[s] = delta; in get_recent_times()
282 *pchanged_states |= (1 << s); in get_recent_times()
314 int s; in collect_percpu_times() local
336 for (s = 0; s < PSI_NONIDLE; s++) in collect_percpu_times()
337 deltas[s] += (u64)times[s] * nonidle; in collect_percpu_times()
353 for (s = 0; s < NR_PSI_STATES - 1; s++) in collect_percpu_times()
354 group->total[aggregator][s] += in collect_percpu_times()
355 div_u64(deltas[s], max(nonidle_total, 1UL)); in collect_percpu_times()
366 int s; in update_averages() local
384 for (s = 0; s < NR_PSI_STATES - 1; s++) { in update_averages()
387 sample = group->total[PSI_AVGS][s] - group->avg_total[s]; in update_averages()
407 group->avg_total[s] += sample; in update_averages()
408 calc_avgs(group->avg[s], missed_periods, sample, period); in update_averages()
737 enum psi_states s; in psi_group_change() local
808 for (s = 0; s < NR_PSI_STATES; s++) { in psi_group_change()
809 if (test_state(groupc->tasks, s, state_mask & PSI_ONCPU)) in psi_group_change()
810 state_mask |= (1 << s); in psi_group_change()