Commit 78aabcb
committed
cpuidle: teo: Avoid unnecessary variable assignments
Notice that it is not necessary to assign tick_intercept_sum in every
iteration of the first loop over idle states in teo_select(), because
the intercept_sum value does not change after the assignment in a
given iteration of the loop, so its value after the last iteration of
the loop can be used for computing the tick_intercept_sum value
directly.
Modify the code accordingly.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 5484e31 commit 78aabcb
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | 453 | | |
456 | 454 | | |
457 | 455 | | |
| |||
484 | 482 | | |
485 | 483 | | |
486 | 484 | | |
487 | | - | |
| 485 | + | |
| 486 | + | |
488 | 487 | | |
489 | 488 | | |
490 | 489 | | |
| |||
0 commit comments