OSDN Git Service

thermal: ACPI: Make helpers retrieve temperature only
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Jan 2023 18:17:03 +0000 (19:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Feb 2023 14:26:45 +0000 (15:26 +0100)
commitdd3b3d160ea7004091051da60e86f36f40970888
tree43a6e5c08142b92c016561fa59839d66e2013234
parentf4118dbe61bb30038ca7f3ecaf333cabc9c54141
thermal: ACPI: Make helpers retrieve temperature only

It is slightly better to make the ACPI thermal helper functions retrieve
the trip point temperature only instead of doing the full trip point
initialization, because they are also used for updating some already
registered trip points, in which case initializing a new trip just
in order to update the temperature of an existing one is somewhat
wasteful.

Modify the ACPI thermal helpers accordingly and update their users.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c
drivers/thermal/intel/intel_pch_thermal.c
drivers/thermal/thermal_acpi.c
include/linux/thermal.h