OMAP3: cpuidle: change the power domains modes determination logic
authorJean Pihet <j-pihet@ti.com>
Mon, 9 May 2011 10:02:16 +0000 (12:02 +0200)
committerKevin Hilman <khilman@ti.com>
Fri, 20 May 2011 15:15:54 +0000 (17:15 +0200)
commit04908918191f7926ec7af99890fb4ddb3b769c13
tree96a531896df79761459d6f10735a5aa85b484a31
parentc6cd91de1cb4694f2dfcc7df831e276fffdffffc
OMAP3: cpuidle: change the power domains modes determination logic

The achievable power modes of the power domains in cpuidle
depends on the system wide 'enable_off_mode' knob in debugfs.
Upon changing enable_off_mode, do not change the C-states
'valid' field but instead dynamically restrict the power modes
when entering idle.

The C-states 'valid' field is just used to enable/disable some
C-states at init and shall not be changed later on.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/cpuidle34xx.c
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/pm34xx.c