Skip to content

Commit

Permalink
ARM: OMAP4+: PM: Use only valid low power state for CPU hotplug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Menon committed Sep 8, 2014
1 parent bd7593c commit 3e6a1c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-omap2/omap-mpuss-lowpower.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
if (omap_rev() == OMAP4430_REV_ES1_0)
return -ENXIO;

/* Use the achievable power state for the domain */
power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm,
false, power_state);

if (power_state == PWRDM_POWER_OFF)
cpu_state = 1;

Expand Down

0 comments on commit 3e6a1c9

Please sign in to comment.