Commits
Leonard Crestez committed 8e2bb4cdb3f
MLK-14874 ARM: imx7d: Ensure ARM clock only disabled if cpus in same state GPC will stop ARM clock if both CPUs are in idle and CPU_CLK_ON_LPM is set in GPC_LPCR_A7_BSC. Make sure that doesn't happen when cpu1 enters state2 and cpu0 enters state0 because the default arm WFI state is not marked with CPUIDLE_FLAG_TIMER_STOP and it can result in arch_sys_timer being stopped unexpectedly. It is possible to reproduce incorrect behavior by explicitly disabling other idle states for cpu0/cpu1 and timing how much sleep calls take on cpu0. Ocassionaly something like "sleep 1" will take 3-4 seconds to complete. Make sure that both CPUs are in the same idle state before entering WAIT. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>