diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2010-06-16 12:49:48 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-12-08 14:29:00 -0500 |
commit | b5b4f2881f619460fdb165111bac10a3dd8eebee (patch) | |
tree | 2f41f00e91f11ef77ff47dd0f65fc31b67aeb9c7 /arch/arm/mach-omap2/common.h | |
parent | a6e48358d15fec2f3f9e86a6d6fc62422141a3a9 (diff) |
ARM: OMAP4: PM: Program CPU1 to hit OFF when off-lined
Program non-boot CPUs to hit lowest supported power state
when it is off-lined using cpu hotplug framework.
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index 36cdba7727f2..c078db1b3de8 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -200,6 +200,7 @@ extern int omap4_mpuss_init(void); | |||
200 | extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state); | 200 | extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state); |
201 | extern int omap4_finish_suspend(unsigned long cpu_state); | 201 | extern int omap4_finish_suspend(unsigned long cpu_state); |
202 | extern void omap4_cpu_resume(void); | 202 | extern void omap4_cpu_resume(void); |
203 | extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state); | ||
203 | #else | 204 | #else |
204 | static inline int omap4_enter_lowpower(unsigned int cpu, | 205 | static inline int omap4_enter_lowpower(unsigned int cpu, |
205 | unsigned int power_state) | 206 | unsigned int power_state) |
@@ -208,6 +209,12 @@ static inline int omap4_enter_lowpower(unsigned int cpu, | |||
208 | return 0; | 209 | return 0; |
209 | } | 210 | } |
210 | 211 | ||
212 | static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) | ||
213 | { | ||
214 | cpu_do_idle(); | ||
215 | return 0; | ||
216 | } | ||
217 | |||
211 | static inline int omap4_mpuss_init(void) | 218 | static inline int omap4_mpuss_init(void) |
212 | { | 219 | { |
213 | return 0; | 220 | return 0; |