diff options
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index f4b8fc50c0f2..ce4cac706dd1 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -144,6 +144,10 @@ int cpuidle_idle_call(void) | |||
144 | /* ask the governor for the next state */ | 144 | /* ask the governor for the next state */ |
145 | next_state = cpuidle_curr_governor->select(drv, dev); | 145 | next_state = cpuidle_curr_governor->select(drv, dev); |
146 | if (need_resched()) { | 146 | if (need_resched()) { |
147 | dev->last_residency = 0; | ||
148 | /* give the governor an opportunity to reflect on the outcome */ | ||
149 | if (cpuidle_curr_governor->reflect) | ||
150 | cpuidle_curr_governor->reflect(dev, next_state); | ||
147 | local_irq_enable(); | 151 | local_irq_enable(); |
148 | return 0; | 152 | return 0; |
149 | } | 153 | } |