diff options
author | 2024-08-01 14:09:30 +0200 | |
---|---|---|
committer | 2024-08-02 13:50:04 +0200 | |
commit | 5136f99b9a4a63dc81924a05d256ad5829cbefa6 (patch) | |
tree | 64efa3633d7f2036ff335826f5eff120ef3b7e1f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | thermal: tegra: Introduce struct trip_temps for critical and hot trips (diff) | |
download | wireguard-linux-5136f99b9a4a63dc81924a05d256ad5829cbefa6.tar.xz wireguard-linux-5136f99b9a4a63dc81924a05d256ad5829cbefa6.zip |
thermal: tegra: Use thermal_zone_for_each_trip() for walking trip points
It is generally inefficient to iterate over trip indices and call
thermal_zone_get_trip() every time to get the struct thermal_trip
corresponding to the given trip index, so modify the Tegra thermal
drivers to use thermal_zone_for_each_trip() for walking trips.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/1819430.VLH7GnMWUR@rjwysocki.net
[ rjw: Dropped an unused local variable ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions