cpufreq: interactive: reduce chance of zero time delta on load eval
authorTodd Poynor <toddpoynor@google.com>
Fri, 5 Apr 2013 20:25:21 +0000 (13:25 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:55 +0000 (13:52 -0800)
commitaedd63a502f2796d7dd0bf3d3144d13610a27419
tree15d926a30d44ee24dfa63c75ee62e4174a98e8f9
parentf71b480fd5f272d929084800e37b5b07cbd3ffdf
cpufreq: interactive: reduce chance of zero time delta on load eval

Reschedule load sampling timer after timestamp of sample start taken,
hold spinlock across entire sequence to avoid preemption.  Avoid the
WARN for zero time delta in the load sampling timer function.

Change-Id: Idc10a756f09141decb6df92669521a1ebf0dbc10
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/cpufreq/cpufreq_interactive.c