Skip to content
Snippets Groups Projects
Commit 65707fb3 authored by Kevin Hilman's avatar Kevin Hilman
Browse files

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: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 0aed0435
No related branches found
No related tags found
No related merge requests found
...@@ -272,10 +272,8 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev, ...@@ -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); per_next_state = per_saved_state = pwrdm_read_next_pwrst(per_pd);
if ((per_next_state == PWRDM_POWER_OFF) && 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; per_next_state = PWRDM_POWER_RET;
pwrdm_set_next_pwrst(per_pd, per_next_state);
}
/* Are we changing PER target state? */ /* Are we changing PER target state? */
if (per_next_state != per_saved_state) if (per_next_state != per_saved_state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment