diff options
author | Nishanth Menon <nm@ti.com> | 2014-07-24 11:24:19 -0400 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2014-09-08 12:22:43 -0400 |
commit | 3e6a1c945950140926dd6e2cc667893de0a7fe3b (patch) | |
tree | 69616329a24d6a107e5065f41e2da6ceb15b54d1 /arch/arm/mach-omap2/omap-mpuss-lowpower.c | |
parent | bd7593c69af8f610567fd6b105c440cfe9da7661 (diff) |
ARM: OMAP4+: PM: Use only valid low power state for CPU hotplug
Not all SoCs support OFF mode - for example DRA74/72. So, use valid
power state during CPU hotplug.
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-mpuss-lowpower.c')
-rw-r--r-- | arch/arm/mach-omap2/omap-mpuss-lowpower.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c index 4001325f90fb..e9cdacfe1923 100644 --- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c +++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c | |||
@@ -298,6 +298,10 @@ int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state) | |||
298 | if (omap_rev() == OMAP4430_REV_ES1_0) | 298 | if (omap_rev() == OMAP4430_REV_ES1_0) |
299 | return -ENXIO; | 299 | return -ENXIO; |
300 | 300 | ||
301 | /* Use the achievable power state for the domain */ | ||
302 | power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, | ||
303 | false, power_state); | ||
304 | |||
301 | if (power_state == PWRDM_POWER_OFF) | 305 | if (power_state == PWRDM_POWER_OFF) |
302 | cpu_state = 1; | 306 | cpu_state = 1; |
303 | 307 | ||