summaryrefslogtreecommitdiff
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorJunjie Wu <junjiew@codeaurora.org>2015-12-02 10:38:50 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:03:33 -0700
commit57bb1f8bf982dd8d6884f8e78f52131be242e55d (patch)
treead3463de8c51275246058060604169952aeae5b3 /drivers/devfreq/devfreq.c
parent0abcce5b1c22b26e4a1a3b1f8faa6fe4b3c64674 (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>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
0 files changed, 0 insertions, 0 deletions