ARM: mach-shmobile: cpuidle single/global and last_state fixes
commitb73b5c493ac001870bd9faf565a61908c82f52d8
authorMagnus Damm <damm@opensource.se>
Fri, 11 Nov 2011 05:01:30 +0000 (11 14:01 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 11 Nov 2011 07:49:28 +0000 (11 16:49 +0900)
treee3f370c108793f726d3a9b6118baf4979d63f08d
parent9b49139b34a66907662e0be8efe79316dc63f8e0
ARM: mach-shmobile: cpuidle single/global and last_state fixes

The following commits break cpuidle on SH-Mobile ARM:

46bcfad cpuidle: Single/Global registration of idle states
e978aa7 cpuidle: Move dev->last_residency update to driver enter routine; remove dev->last_state

This patch remedies these issues by up-porting the SH-Mobile
code to fit with the above introduced framework changes.

It is worth noting that the new code becomes significantly cleaner,
so these framework changes are very welcome. At the same time this
breakage could probably have been avoided by grepping for "last_state"
and "cpuidle_register_driver".

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/cpuidle.c
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/pm-sh7372.c