staticint cpuidle_sleep_enter(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index)
{ unsignedlong allowed_mode = SUSP_SH_SLEEP; int requested_state = index; int allowed_state; int k;
/* convert allowed mode to allowed state */ for (k = ARRAY_SIZE(cpuidle_mode) - 1; k > 0; k--) if (cpuidle_mode[k] == allowed_mode) break;
allowed_state = k;
/* take the following into account for sleep mode selection: *-allowed_state:bestmodeallowedbyhardware(clockdeps) *-requested_state:bestmodeallowedbysoftware(latencies)
*/
k = min_t(int, allowed_state, requested_state);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.