cpuidle: menu: fixed wrapping timers at 4.294 seconds
authorTero Kristo <tero.kristo@nokia.com>
Thu, 24 Feb 2011 15:19:23 +0000 (17:19 +0200)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:44 +0000 (12:20 -0500)
commit9ee653dce0efc6bad29f0d68b4ac74dbed093131
treee19f1c1bdb50e59d06af458c23aa9057c698d14a
parent2e49c366095b20fd97518f5fe1d50fcfffc1c743
cpuidle: menu: fixed wrapping timers at 4.294 seconds

BugLink: http://bugs.launchpad.net/bugs/774947

Cpuidle menu governor is using u32 as a temporary datatype for storing
nanosecond values which wrap around at 4.294 seconds. This causes errors
in predicted sleep times resulting in higher than should be C state
selection and increased power consumption. This also breaks cpuidle
state residency statistics.

cc: stable@kernel.org # .32.x through .39.x
Signed-off-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Len Brown <len.brown@intel.com>
(cherry picked from commit 7467571f4480b273007517b26297c07154c73924)
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/cpuidle/governors/menu.c