cpufreq: interactive governor drops bits in time calculation
authorChris Redpath <chris.redpath@arm.com>
Mon, 17 Jun 2013 17:36:56 +0000 (18:36 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commit3894650a05f6a0c5d3fe7c4fa72ad0627f6e9f3d
tree4d8867c62240588ac798cdb23aac8299272072c7
parentba832b0760889ce6434f9895789ffcda3d5da6e6
cpufreq: interactive governor drops bits in time calculation

Keep time calculation in 64-bit throughout. If we have long times
between idle calculations this can result in deltas > 32 bits
which causes incorrect load percentage calculations and selecting
the wrong frequencies if we truncate here.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
drivers/cpufreq/cpufreq_interactive.c