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)
committerDanny Wood <danwood76@gmail.com>
Fri, 22 Mar 2019 16:03:06 +0000 (16:03 +0000)
commit8900764d8983fdf4a29358fb825ccf775f7b73b8
tree3a23634beeac56c63e04b64540a28c9f42abbe9b
parent5c6c99ed34cde244ac99fda2433745e85e34da8c
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.

Change-Id: Iac1e5646d58485737538edbb9e7a6d2246b56023
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
drivers/cpufreq/cpufreq_interactive.c