Skip to content

Commit

Permalink
OMAP3: CPUidle: remove redundant setting of PER next power state
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Kevin Hilman <[email protected]>
  • Loading branch information
metaliveblog committed Oct 1, 2010
1 parent 0aed043 commit 65707fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm/mach-omap2/cpuidle34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,8 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev,
*/
per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd);
if ((per_next_state == PWRDM_POWER_OFF) &&
(core_next_state > PWRDM_POWER_RET)) {
(core_next_state > PWRDM_POWER_RET))
per_next_state = PWRDM_POWER_RET;
pwrdm_set_next_pwrst(per_pd, per_next_state);
}

/* Are we changing PER target state? */
if (per_next_state != per_saved_state)
Expand Down

0 comments on commit 65707fb

Please sign in to comment.