commit | 3411ad0239f4ca22eeadd3139b64b79f9a290f4c | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Fri Oct 05 08:14:28 2012 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Oct 05 08:14:28 2012 -0700 |
tree | f28f8c6dbefa1c9342a370a405bfbe2373e98de7 | |
parent | 01da9d1757c588932b325508a8accd9d90081231 [diff] | |
parent | 358861e1f596adae060105fbbfcaa10666123ae1 [diff] |
Merge "msm: cpr: Limit down step to avoid sudden drops"
diff --git a/arch/arm/mach-msm/msm_cpr.c b/arch/arm/mach-msm/msm_cpr.c index 74d7c74..d13ee16 100644 --- a/arch/arm/mach-msm/msm_cpr.c +++ b/arch/arm/mach-msm/msm_cpr.c
@@ -525,6 +525,10 @@ */ error_step -= 2; + /* Keep down step upto two per interrupt to avoid any spike */ + if (error_step > 2) + error_step = 2; + /* Calculte new PMIC voltage */ new_volt = curr_volt - (error_step * cpr->vp->step_size); msm_cpr_debug(MSM_CPR_DEBUG_STEPS,