diff options
author | 2023-08-22 13:28:02 +0200 | |
---|---|---|
committer | 2023-08-23 18:25:04 +0200 | |
commit | 78aabcb3211aa4b7e8f8a1d5d4bdad699a42d4ba (patch) | |
tree | 47f8b274169399a96cdaf1af57b62e1f6beca3ac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpuidle: menu: Skip tick_nohz_get_sleep_length() call in some cases (diff) | |
download | wireguard-linux-78aabcb3211aa4b7e8f8a1d5d4bdad699a42d4ba.tar.xz wireguard-linux-78aabcb3211aa4b7e8f8a1d5d4bdad699a42d4ba.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions