Lines Matching defs:state
3 * cpuidle-powernv - idle state cpuidle driver.
196 /* Is the state not enabled? */
267 * Since snooze is used as first idle state, max idle states allowed is
285 struct pnv_idle_states_t *state = &pnv_idle_states[i];
288 * Skip the platform idle state whose flag isn't in
291 if ((state->flags & supported_flags) != state->flags)
294 * If an idle state has exit latency beyond
298 if (state->latency_ns > POWERNV_THRESHOLD_LATENCY_NS)
304 exit_latency = DIV_ROUND_UP(state->latency_ns, 1000);
305 target_residency = DIV_ROUND_UP(state->residency_ns, 1000);
307 if (has_stop_states && !(state->valid))
310 if (state->flags & OPAL_PM_TIMEBASE_STOP)
313 if (state->flags & OPAL_PM_NAP_ENABLED) {
314 /* Add NAP state */
319 add_powernv_state(nr_idle_states, state->name,
322 state->psscr_val,
323 state->psscr_mask);
331 else if (state->flags & OPAL_PM_SLEEP_ENABLED ||
332 state->flags & OPAL_PM_SLEEP_ENABLED_ER1) {
333 /* Add FASTSLEEP state */
339 add_powernv_state(nr_idle_states, state->name,
342 state->psscr_val,
343 state->psscr_mask);
356 * Choose state table for shared versus dedicated partition