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)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 16:21:54 +0000 (17:21 +0100)
commit1d7f81197e575c00bf5dfa988f4c7a12c45993b2
treed11bf99bf12a08eb144963a4c2d7cb0fd7bdac17
parentcbb39a8dbf53df05b7d9e98e6c0f6f375ed811b5
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