From: venkatesh.pallipadi@intel.com Date: Thu, 31 Jul 2008 02:21:43 +0000 (-0700) Subject: cpuidle: Menu governor fix wrong usage of measured_us X-Git-Tag: v2.6.27-rc4~59^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320eee776357db52d6fcfb11cff985b1976a4595;p=pandora-kernel.git cpuidle: Menu governor fix wrong usage of measured_us There is a bug in menu governor where we have if (data->elapsed_us < data->elapsed_us + measured_us) with measured_us already having elapsed_us added in tickless case here unsigned int measured_us = cpuidle_get_last_residency(dev) + data->elapsed_us; Also, it should be last_residency, not measured_us, that need to be used to do comparing and distinguish between expected & non-expected events. Refactor menu_reflect() to fix these two problems. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Wei Gang Signed-off-by: Andi Kleen --- Reading git-diff-tree failed