]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpuidle: Set residency to 0 if target Cstate not enter
authorYouquan Song <youquan.song@intel.com>
Wed, 24 Oct 2012 19:26:56 +0000 (21:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Oct 2012 19:26:56 +0000 (21:26 +0200)
commitafd7ba271a312f7ef42019f14bd851b16591a495
treee57dedd83f10735f616b2be6ea05c90d26db0761
parente7f24e2d2c9f5e0ea3c96cb45b0ec55d7ecd5191
cpuidle: Set residency to 0 if target Cstate not enter

When cpuidle governor choose a C-state to enter for idle CPU, but it notice that
there is tasks request to be executed. So the idle CPU will not really enter
the target C-state and go to run task.

In this situation, it will use the residency of previous really entered target
C-states. Obviously, it is not reasonable.

So, this patch fix it by set the target C-state residency to 0.

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>
drivers/cpuidle/cpuidle.c