aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/cpuidle34xx.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@deeprootsystems.com>2010-10-01 11:35:47 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2010-10-01 16:49:32 -0400
commit65707fb3794e9cf75665f9ef91cfb07c50d3ffa5 (patch)
tree12352dc87b4217d680cd7938dd8bc136a95b6fa5 /arch/arm/mach-omap2/cpuidle34xx.c
parent0aed043517ad4135cb458a46e9e99e21cbb59c69 (diff)
OMAP3: CPUidle: remove redundant setting of PER next power state
When checking how to program the next powerstate for the PER powerdomain, the next state of PER powerdomain was written twice. Remove the duplicate write. Reported-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/cpuidle34xx.c')
-rw-r--r--arch/arm/mach-omap2/cpuidle34xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c
index 8ea012ef0b5a..703b5ec88e98 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -272,10 +272,8 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev,
272 */ 272 */
273 per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd); 273 per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd);
274 if ((per_next_state == PWRDM_POWER_OFF) && 274 if ((per_next_state == PWRDM_POWER_OFF) &&
275 (core_next_state > PWRDM_POWER_RET)) { 275 (core_next_state > PWRDM_POWER_RET))
276 per_next_state = PWRDM_POWER_RET; 276 per_next_state = PWRDM_POWER_RET;
277 pwrdm_set_next_pwrst(per_pd, per_next_state);
278 }
279 277
280 /* Are we changing PER target state? */ 278 /* Are we changing PER target state? */
281 if (per_next_state != per_saved_state) 279 if (per_next_state != per_saved_state)