diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-12 21:25:06 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-20 20:25:22 +0300 |
commit | 78869767f2ad3a98d2c830b718a503d8b0a94b26 (patch) | |
tree | cb6e8a3834125e710eefdadb9d0e34d1b4e04991 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a26b452e836e39223915adc41867441f3f0b372b (diff) | |
download | linux-78869767f2ad3a98d2c830b718a503d8b0a94b26.tar.xz |
thermal: trip: Simplify computing trip indices
A trip index can be computed right away as a difference between the
value of a trip pointer pointing to the given trip object and the
start of the trips[] table in the given thermal zone, so change
thermal_zone_trip_id() accordingly.
No intentional functional impact (except for some speedup).
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions