diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-12 21:29:43 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-10-20 20:26:37 +0300 |
commit | 276f1ede95164b54f55c82d40e9df218109704d6 (patch) | |
tree | 348aafd1cda16bb5d7211f9d5aa5a0d3acf525e2 /drivers/thermal/thermal_sysfs.c | |
parent | 234ed6f5fbedf7bc84f9adc08c3e11ca8588ffd8 (diff) | |
download | linux-276f1ede95164b54f55c82d40e9df218109704d6.tar.xz |
thermal: gov_fair_share: Rearrange get_trip_level()
Make get_trip_level() use for_each_trip() to iterate over trip points
and make it call thermal_zone_trip_id() to obtain the integer ID of a
given trip point so as to avoid relying on the knowledge of struct
thermal_zone_device internals.
The general functionality is not expected to be changed.
This change causes the governor to use trip pointers instead of trip
indices everywhere except for the fair_share_throttle() second argument
that will be modified subsequently along with the definition of the
governor .throttle() callback.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/thermal_sysfs.c')
0 files changed, 0 insertions, 0 deletions