File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
drivers/cpuidle/governors Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,6 @@ static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev)
189
189
}
190
190
}
191
191
192
- cpu_data -> total = 0 ;
193
-
194
192
/*
195
193
* Decay the "hits" and "intercepts" metrics for all of the bins and
196
194
* find the bins that the sleep length and the measured idle duration
@@ -202,8 +200,6 @@ static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev)
202
200
bin -> hits -= bin -> hits >> DECAY_SHIFT ;
203
201
bin -> intercepts -= bin -> intercepts >> DECAY_SHIFT ;
204
202
205
- cpu_data -> total += bin -> hits + bin -> intercepts ;
206
-
207
203
target_residency_ns = drv -> states [i ].target_residency_ns ;
208
204
209
205
if (target_residency_ns <= cpu_data -> sleep_length_ns ) {
@@ -228,6 +224,7 @@ static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev)
228
224
cpu_data -> tick_intercepts += PULSE ;
229
225
}
230
226
227
+ cpu_data -> total -= cpu_data -> total >> DECAY_SHIFT ;
231
228
cpu_data -> total += PULSE ;
232
229
}
233
230
You can’t perform that action at this time.
0 commit comments