commit | 0c4989b50df4c453313b07d0dcf84d7c1d137bb2 | [log] [tgz] |
---|---|---|
author | Junjie Wu <junjiew@codeaurora.org> | Wed Dec 02 10:38:50 2015 -0800 |
committer | Stephen Boyd <sboyd@codeaurora.org> | Mon Mar 20 12:16:13 2017 -0700 |
tree | 010da8d3fe66db6645494d57fe96bb645e91a0ae | |
parent | 433ed997141301e4612aa877aa1c82856d517afb [diff] |
cpufreq: interactive: Fix potential divide-by-zero operation prev_load could be zero if no active time is registered for a CPU within a sampling period. Fix potential divide-by-zero issue when calculating new load percentage. Change-Id: I8ad118f5b6b94a410ec59eb5ce939b9467e921c7 Signed-off-by: Junjie Wu <junjiew@codeaurora.org> Signed-off-by: Hanumath Prasad <hpprasad@codeaurora.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>