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
1 file changed
tree: f0370d7767f5adf98f6493e7aac28e2c209119bc
  1. cryptfs_hw/
  2. dtbtool/
  3. init/
  4. power/
  5. Android.mk
  6. README.md
README.md

Generic common qcom configuration tools

Copyright 2014 - The CyanogenMod Project