]> git.baikalelectronics.ru Git - kernel.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)
committerLen Brown <len.brown@intel.com>
Sun, 29 May 2011 04:35:47 +0000 (00:35 -0400)
commiteb49032f57283814215866718513891aa3e860dc
treee933b8cff072f5ec389cd5e20c85e756e49cafeb
parent5f606d388b7d90e888f8599ea3bd433cadefba0e
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