cpufreq: interactive: avoid underflow on active time calculation
authorMinsung Kim <ms925.kim@samsung.com>
Tue, 23 Apr 2013 13:32:01 +0000 (22:32 +0900)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:56 +0000 (13:52 -0800)
commit83720c33a9005029e98a8e730af34d9347c69896
tree3fc5eb9968b4b4d1952dbd8618dedffa494943d8
parentaedd63a502f2796d7dd0bf3d3144d13610a27419
cpufreq: interactive: avoid underflow on active time calculation

Check for idle time delta less than elapsed time delta, avoid
underflow computing active time.

Change-Id: I3e4c6ef1ad794eec49ed379c0c50fa727fd6ad28
Signed-off-by: Minsung Kim <ms925.kim@samsung.com>
drivers/cpufreq/cpufreq_interactive.c