ARM: cpuidle-imx*: Report the entered state index
authorLeonard Crestez <leonard.crestez@nxp.com>
Mon, 13 Mar 2017 10:35:24 +0000 (12:35 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:54 +0000 (15:10 -0500)
commit18ebea05a2abe2e31b835f1fee9b9d1b144657b1
treead503c800d93b3abb8046719e324e02206714ebc
parent31ad8e236e87ef5e4b5ae4bfd6b54454f73e5fe0
ARM: cpuidle-imx*: Report the entered state index

When a cpuidle driver is called it can choose to enter a different state
that what was asked from above. When this happens it should return the
actual entered_state index for proper accounting.

This fixes the various imx cpuidle drivers which depend on low busfreq
for LOW-POWER-IDLE to correctly report that they entered WAIT instead.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
arch/arm/mach-imx/cpuidle-imx6sll.c
arch/arm/mach-imx/cpuidle-imx6sx.c
arch/arm/mach-imx/cpuidle-imx6ul.c
arch/arm/mach-imx/cpuidle-imx7d.c