Lines Matching defs:state
3 * cpuidle-powernv - idle state cpuidle driver.
199 /* Is the state not enabled? */
270 * Since snooze is used as first idle state, max idle states allowed is
288 struct pnv_idle_states_t *state = &pnv_idle_states[i];
291 * Skip the platform idle state whose flag isn't in
294 if ((state->flags & supported_flags) != state->flags)
297 * If an idle state has exit latency beyond
301 if (state->latency_ns > POWERNV_THRESHOLD_LATENCY_NS)
307 exit_latency = DIV_ROUND_UP(state->latency_ns, 1000);
308 target_residency = DIV_ROUND_UP(state->residency_ns, 1000);
310 if (has_stop_states && !(state->valid))
313 if (state->flags & OPAL_PM_TIMEBASE_STOP)
316 if (state->flags & OPAL_PM_NAP_ENABLED) {
317 /* Add NAP state */
322 add_powernv_state(nr_idle_states, state->name,
325 state->psscr_val,
326 state->psscr_mask);
334 else if (state->flags & OPAL_PM_SLEEP_ENABLED ||
335 state->flags & OPAL_PM_SLEEP_ENABLED_ER1) {
336 /* Add FASTSLEEP state */
342 add_powernv_state(nr_idle_states, state->name,
345 state->psscr_val,
346 state->psscr_mask);
359 * Choose state table for shared versus dedicated partition