Lines Matching full:states

20  * wakeups from idle states.  Moreover, information about what happened in the
25 * states to choose instead of it.
40 * idle states provided by the %CPUIdle driver in the ascending order. That is,
75 * and all of the deeper idle states (it represents the cases in which the
79 * - The sum of the "intercepts" metrics for all of the idle states shallower
84 * - The sum of the numbers of recent intercepts for all of the idle states
91 * - Traverse the idle states shallower than the candidate one in the
95 * of the numbers of recent intercepts over all of the idle states between
243 u64 lat_ns = drv->states[dev->last_state_idx].exit_latency_ns; in teo_update()
280 target_residency_ns = drv->states[i].target_residency_ns; in teo_update()
338 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok()
347 * @no_poll: Don't consider polling states.
357 (no_poll && drv->states[i].flags & CPUIDLE_FLAG_POLLING)) in teo_find_shallower_state()
361 if (drv->states[i].target_residency_ns <= duration_ns) in teo_find_shallower_state()
417 * states to choose from, the metrics need not be considered, so choose in teo_select()
429 if ((!idx && !(drv->states[0].flags & CPUIDLE_FLAG_POLLING) && in teo_select()
436 duration_ns = drv->states[1].target_residency_ns; in teo_select()
443 struct cpuidle_state *s = &drv->states[i]; in teo_select()
446 * Update the sums of idle state mertics for all of the states in teo_select()
472 idx = 0; /* No states enabled, must use 0. */ in teo_select()
481 duration_ns = drv->states[idx].target_residency_ns; in teo_select()
489 * If the sum of the intercepts metric for all of the idle states in teo_select()
492 * all of the deeper states, or the sum of the numbers of recent in teo_select()
493 * intercepts over all of the states shallower than the candidate one in teo_select()
587 if ((drv->states[0].flags & CPUIDLE_FLAG_POLLING) && in teo_select()
588 drv->states[idx].target_residency_ns < RESIDENCY_THRESHOLD_NS) in teo_select()
598 if (drv->states[idx].target_residency_ns > duration_ns) { in teo_select()
609 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select()
619 if ((!(drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && in teo_select()
629 drv->states[idx].target_residency_ns > delta_tick) in teo_select()