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

The following commits break cpuidle on SH-Mobile ARM:

78c3417 cpuidle: Single/Global registration of idle states
1b6d8ae 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