]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:38 +0000 (11:20 -0400)
commite2a494065fafb1ed397ef55a230a54e4ecdf374a
tree9c4d2c4a4d3ca3c5ae2b8c844ce4fbf7ff2edc9d
parent1e08fb3a81dd6c30140642657c60eca861a2400e
cpuidle: menu: fixed wrapping timers at 4.294 seconds

commit 7467571f4480b273007517b26297c07154c73924 upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/cpuidle/governors/menu.c