commit | 1f7d8afbb294e8ee35e222faafcdcea3ec7cc093 | [log] [tgz] |
---|---|---|
author | Zhao Wei Liew <zhaoweiliew@gmail.com> | Tue Jun 21 17:08:54 2016 +0800 |
committer | Nathan Prevette <nprevette420@gmail.com> | Tue Jun 21 13:54:07 2016 -0700 |
tree | 826abd9ddbb005fdf23e38a8ea679d1d99f60b6f | |
parent | dc1c6596019850d73900afd7b52d9aa126606b8c [diff] |
power: msm8952: Fix previous_boost_time getting reset As previous_boost_time was not static, its value gets resetted to 0 everytime power_hint_override() is called. As a result, the following statement will always result in elapsed_time == cur_boost_time: elapsed_time = (double)(cur_boost_time - previous_boost_time); This in turn causes the following check to always return false: if (elapsed_time < 250000 && duration <= 750) Change-Id: Idcc22a6f8f10c989ca74a385d3d240c49ef94c2c