diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-06-17 21:07:35 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-07-04 14:25:31 +0300 |
commit | 6fb75c967162c28b2a50cb4673cce36e0e70e3dc (patch) | |
tree | 1012bcce0cfa2e5eaf4718cfab695512f3337581 /rust/helpers/task.c | |
parent | efde8bfdc1c76b4eefc5de0eb4c14738580d97d6 (diff) | |
download | linux-6fb75c967162c28b2a50cb4673cce36e0e70e3dc.tar.xz |
thermal: uniphier: 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 uniphier thermal
driver to use thermal_zone_for_each_trip() for walking trips.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://patch.msgid.link/2148114.bB369e8A3T@kreacher
[ rjw: Add missing return statement, remove unused local variable ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions