ACPI: thermal: Rework thermal_get_trend()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Aug 2023 18:17:07 +0000 (20:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:25:22 +0000 (11:25 +0200)
commit9caaad2ca02cb31fc235249f971cabdf8e11e28d
tree1ddd64afa3057eac9444b6c3b99365b10288884c
parentec23c1c462ded022ec0c3ed3fa92af6ca25b9599
ACPI: thermal: Rework thermal_get_trend()

Rework the ACPI thermal driver's .get_trend() callback function,
thermal_get_trend(), so that it does not call thermal_get_trip_type()
and thermal_get_trip_temp() which are going to be dropped.

This reduces the overhead of the function too, because it will always
carry out a trip point lookup once after the change.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c