OMAP3: PM: make omap3_cpuidle_update_states independent of enable_off_mode
authorNishanth Menon <nm@ti.com>
Mon, 20 Dec 2010 20:05:08 +0000 (14:05 -0600)
committerKevin Hilman <khilman@deeprootsystems.com>
Tue, 21 Dec 2010 22:45:52 +0000 (14:45 -0800)
commit80723c3fe457a5d29c178da4ac72983f47b37ed7
tree1cc9a75d0be63e806014cc412b00d97ae1b7e1fd
parentc4236d2e7913d18d058a018f0d19473eb6a11a3c
OMAP3: PM: make omap3_cpuidle_update_states independent of enable_off_mode

Currently omap3_cpuidle_update_states makes whole sale decision
on which C states to update based on enable_off_mode variable
Instead, achieve the same functionality by independently providing
mpu and core deepest states the system is allowed to achieve and
update the idle states accordingly.

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[khilman: fixed additional user of this API in OMAP CPUidle driver]
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/cpuidle34xx.c
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/pm34xx.c