cpuidle: teo: Fix intervals[] array indexing bug
authorIkjoon Jang <ikjn@chromium.org>
Fri, 10 Jan 2020 17:47:12 +0000 (01:47 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jan 2020 10:14:58 +0000 (11:14 +0100)
commit57388a2ccb6c2f554fee39772886c69b796dde53
treeb18506194662425d4014238af2525c9c3338e779
parentb3a987b0264d3ddbb24293ebff10eddfc472f653
cpuidle: teo: Fix intervals[] array indexing bug

Fix a simple bug in rotating array index.

Fixes: b26bf6ab716f ("cpuidle: New timer events oriented governor for tickless systems")
Signed-off-by: Ikjoon Jang <ikjn@chromium.org>
Cc: 5.1+ <stable@vger.kernel.org> # 5.1+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/governors/teo.c