summaryrefslogtreecommitdiff
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-05-08 22:47:37 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-10 01:35:36 (GMT)
commit1c6fe0364fa7bf28248488753ee0afb6b759cd04 (patch)
tree8bb0caf5efc652c18354a8694fc1e235f216d6ab /kernel/posix-timers.c
parentf1c448e0a9e99c76f4ece368714fb35a40a8daba (diff)
downloadlinux-fsl-qoriq-1c6fe0364fa7bf28248488753ee0afb6b759cd04.tar.xz
cpuidle: Fix incorrect optimization
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> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/posix-timers.c')
0 files changed, 0 insertions, 0 deletions