Lines Matching full:states
37 * idle states provided by the %CPUIdle driver in the ascending order. That is,
70 * - The sum of the "hits" metric for all of the idle states shallower than
74 * - The sum of the "intercepts" metric for all of the idle states shallower
82 * - Traverse the enabled idle states shallower than the candidate one in the
86 * of the idle states between it and the candidate one (including the
172 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; in teo_update()
202 target_residency_ns = drv->states[i].target_residency_ns; in teo_update()
233 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok()
242 * @no_poll: Don't consider polling states.
252 (no_poll && drv->states[i].flags & CPUIDLE_FLAG_POLLING)) in teo_find_shallower_state()
256 if (drv->states[i].target_residency_ns <= duration_ns) in teo_find_shallower_state()
311 struct cpuidle_state *s = &drv->states[i]; in teo_select()
314 * Update the sums of idle state mertics for all of the states in teo_select()
338 idx = 0; /* No states enabled, must use 0. */ in teo_select()
347 duration_ns = drv->states[idx].target_residency_ns; in teo_select()
352 * If the sum of the intercepts metric for all of the idle states in teo_select()
355 * all of the deeper states, a shallower idle state is likely to be a in teo_select()
405 * states other than the initial candidate have been in teo_select()
406 * found, give up (the remaining states to check are in teo_select()
428 * are dominant. Namely, it may effectively prevent deeper idle states in teo_select()
443 * shallow idle states regardless of the wakeup type, so the sleep in teo_select()
446 if ((!idx || drv->states[idx].target_residency_ns < RESIDENCY_THRESHOLD_NS) && in teo_select()
461 if (drv->states[idx].target_residency_ns > duration_ns) { in teo_select()
472 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select()
482 if ((!(drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in teo_select()
492 drv->states[idx].target_residency_ns > delta_tick) in teo_select()