summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-05-08 15:47:37 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-12 14:57:16 -0700
commit878ab0f7c084d22ecbca25953907f637474c70d9 (patch)
tree1afc07fb2d0562c1d2b68278f8484410d643a39e /Kbuild
parent8c75d08fd187685d67994a364a58875429d7d15a (diff)
downloadlwn-878ab0f7c084d22ecbca25953907f637474c70d9.tar.gz
lwn-878ab0f7c084d22ecbca25953907f637474c70d9.zip
cpuidle: Fix incorrect optimization
commit 1c6fe0364fa7bf28248488753ee0afb6b759cd04 upstream. commit 672917dcc78 ("cpuidle: menu governor: reduce latency on exit") added an optimization, where the analysis on the past idle period moved from the end of idle, to the beginning of the new idle. Unfortunately, this optimization had a bug where it zeroed one key variable for new use, that is needed for the analysis. The fix is simple, zero the variable after doing the work from the previous idle. During the audit of the code that found this issue, another issue was also found; the ->measured_us data structure member is never set, a local variable is always used instead. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: Corrado Zoccolo <czoccolo@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions