summaryrefslogtreecommitdiff
path: root/crypto/speck.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-03-20 10:12:04 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2018-06-18 18:52:11 +0200
commit9175aff5c459656eb6e1cbef09033d1318dc4363 (patch)
tree2aac9c0f9a1118b9fa4214bbd397d04571ccb934 /crypto/speck.c
parente5fa6a9f833f04d4e31e67e40097c68cd5fbee89 (diff)
cpuidle: menu: Avoid selecting shallow states with stopped tick
If the scheduler tick has been stopped already and the governor selects a shallow idle state, the CPU can spend a long time in that state if the selection is based on an inaccurate prediction of idle time. That effect turns out to be relevant, so it needs to be mitigated. To that end, modify the menu governor to discard the result of the idle time prediction if the tick is stopped and the predicted idle time is less than the tick period length, unless the tick timer is going to expire soon. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'crypto/speck.c')
0 files changed, 0 insertions, 0 deletions