diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-04-05 19:12:43 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-04-09 11:54:57 +0200 |
commit | 87c9fe6ee495f78f36d39cb37f6a714444a093ee (patch) | |
tree | b9a193663e33b6661ed06703b084a15ea71fdeb2 /crypto/md4.c | |
parent | 296bb1e51a4838a6488ec5ce676607093482ecbc (diff) | |
download | linux-87c9fe6ee495f78f36d39cb37f6a714444a093ee.tar.bz2 |
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>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'crypto/md4.c')
0 files changed, 0 insertions, 0 deletions