+
+ psci_states = kcalloc(count, sizeof(*psci_states), GFP_KERNEL);
+ if (!psci_states)
+ return -ENOMEM;
+
+ for (i = 0; i < count; i++) {
+ u32 state;
+
+ lpi = &pr->power.lpi_states[i + 1];
+ state = lpi->address & 0xFFFFFFFF;
Why is needed to mask 'address' ?
int psci_cpu_init_idle(unsigned int cpu)
{
struct device_node *cpu_node;
int ret;
+ if (!acpi_disabled)
+ return psci_acpi_cpu_init_idle(cpu);
Is it possible the case where there is information in both the DT and in
ACPI ? So ACPI is enabled without idle information which is in the DT ?
Either you do this, or we have to add it somehow somewhere in
drivers/cpuidle to avoid duplicating it.
@Daniel: do you have an opinion on this please ?
Yes, this function should be added to avoid duplication.