summaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle/cpuidle.c
diff options
context:
space:
mode:
authorYouquan Song <youquan.song@intel.com>2012-10-26 12:26:50 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-15 00:34:20 +0100
commite11538d1f03914eb92af5a1a378375c05ae8520c (patch)
treec2c750f26f6c4de57da94e8a0a95a7d7e742bcee /drivers/cpuidle/cpuidle.c
parent69a37beabf1f0a6705c08e879bdd5d82ff6486c4 (diff)
downloadop-kernel-dev-e11538d1f03914eb92af5a1a378375c05ae8520c.zip
op-kernel-dev-e11538d1f03914eb92af5a1a378375c05ae8520c.tar.gz
cpuidle: Quickly notice prediction failure in general case
The prediction for future is difficult and when the cpuidle governor prediction fails and govenor possibly choose the shallower C-state than it should. How to quickly notice and find the failure becomes important for power saving. The patch extends to general case that prediction logic get a small predicted residency, so it choose a shallow C-state though the expected residency is large . Once the prediction will be fail, the CPU will keep staying at shallow C-state for a long time. Acutally, the CPU has change enter into deep C-state. So when the expected residency is long enough but governor choose a shallow C-state, an timer will be added in order to monitor if the prediction failure. When C-state is waken up prior to the adding timer, the timer will be cancelled initiatively. When the timer is triggered and menu governor will quickly notice prediction failure and re-evaluates deeper C-states possibility. Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Youquan Song <youquan.song@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud