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)
committerLen Brown <len.brown@intel.com>
Sun, 29 May 2011 04:35:47 +0000 (00:35 -0400)
commit7467571f4480b273007517b26297c07154c73924
treee933b8cff072f5ec389cd5e20c85e756e49cafeb
parent521cb40b0c44418a4fd36dc633f575813d59a43d
cpuidle: menu: fixed wrapping timers at 4.294 seconds

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>
drivers/cpuidle/governors/menu.c