staticint psci_acpi_cpu_init_idle(unsignedint cpu)
{ int i, count; struct acpi_lpi_state *lpi; struct acpi_processor *pr = per_cpu(processors, cpu);
if (unlikely(!pr || !pr->flags.has_lpi)) return -EINVAL;
/* * If the PSCI cpu_suspend function hook has not been initialized * idle states must not be enabled, so bail out
*/ if (!psci_ops.cpu_suspend) return -EOPNOTSUPP;
lpi = &pr->power.lpi_states[i + 1]; /* * Only bits[31:0] represent a PSCI power_state while * bits[63:32] must be 0x0 as per ARM ACPI FFH Specification
*/
state = lpi->address; if (!psci_power_state_is_valid(state)) {
pr_warn("Invalid PSCI power state %#x\n", state); return -EINVAL;
}
}
return 0;
}
int acpi_processor_ffh_lpi_probe(unsignedint cpu)
{ return psci_acpi_cpu_init_idle(cpu);
}
__cpuidle int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi)
{
u32 state = lpi->address;
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.