diff options
author | 2025-01-13 19:36:57 +0100 | |
---|---|---|
committer | 2025-01-20 17:16:16 +0100 | |
commit | 92ce5c07b7a1913246fd5492aee52db8a0c66f55 (patch) | |
tree | e898179489d72e6a752bdcb6ad492ae1fb544c65 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpuidle: teo: Rearrange idle state lookup code (diff) | |
download | linux-rng-92ce5c07b7a1913246fd5492aee52db8a0c66f55.tar.xz linux-rng-92ce5c07b7a1913246fd5492aee52db8a0c66f55.zip |
cpuidle: teo: Reorder candidate state index checks
Since constraint_idx may be 0, the candidate state index may change to 0
after assigning constraint_idx to it, so first check if it is greater
than constraint_idx (and update it if so) and then check it against 0.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
Tested-by: Aboorva Devarajan <aboorvad@linux.ibm.com>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/1907276.tdWV9SEqCh@rjwysocki.net
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions