diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-02 20:56:43 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-04-08 16:01:20 +0200 |
commit | daeeb032f42d066a49e07b7f6effc9f51b7a5479 (patch) | |
tree | 241a3bcb198f013c132e3c4b94557888e47c1a88 /drivers/thermal/thermal_trace_ipa.h | |
parent | thermal: gov_step_wise: Simplify checks related to passive trips (diff) | |
download | linux-daeeb032f42d066a49e07b7f6effc9f51b7a5479.tar.xz linux-daeeb032f42d066a49e07b7f6effc9f51b7a5479.zip |
thermal: core: Move threshold out of struct thermal_trip
The threshold field in struct thermal_trip is only used internally by
the thermal core and it is better to prevent drivers from misusing it.
It also takes some space unnecessarily in the trip tables passed by
drivers to the core during thermal zone registration.
For this reason, introduce struct thermal_trip_desc as a wrapper around
struct thermal_trip, move the threshold field directly into it and make
the thermal core store struct thermal_trip_desc objects in the internal
thermal zone trip tables. Adjust all of the code using trip tables in
the thermal core accordingly.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'drivers/thermal/thermal_trace_ipa.h')
0 files changed, 0 insertions, 0 deletions