This fixes commit ("MLK15034: ARM: cpuidle imx7d: Check
IPIs manually before LPI").
In this patch, also need to take care of psci part.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
spin_lock(&psci_lock);
if (atomic_inc_return(&master_lpi) == num_online_cpus()) {
if (imx7d_gic_sgis_pending()) {
+ atomic_dec(&master_lpi);
index = -1;
goto psci_skip_lpi_flow;
}
* any additional IPIs.
*/
if (imx7d_gic_sgis_pending()) {
+ atomic_dec(&master_lpi);
index = -1;
goto skip_lpi_flow;
}