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)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 26 Jul 2013 20:50:10 +0000 (13:50 -0700)
commit3e6b9d8fb4de1c4353af6e4f69dd00f84f9b98b9
treeed68854cc0cc4cbaa2ff4fa453a2e694e6355fb6
parente2aeacdc6ac500b0b3e48b5be754ed17d1fc9094
cpufreq: interactive: avoid underflow on active time calculation

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

Bug 1316765

Change-Id: I3e4c6ef1ad794eec49ed379c0c50fa727fd6ad28
Signed-off-by: Minsung Kim <ms925.kim@samsung.com>
(cherry picked from commit 3022f93a1aff25b3c9174ac659d7e4a143892267)
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/251582
Reviewed-by: Elaine Tam <etam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Tested-by: Elaine Tam <etam@nvidia.com>
drivers/cpufreq/cpufreq_interactive.c