Searched hist:b1bf9dbffc3049ca22ab36cb807b671655a936d0 (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | int340x_thermal_zone.h | diff b1bf9dbffc3049ca22ab36cb807b671655a936d0 Wed Jan 25 15:52:25 CET 2023 Rafael J. Wysocki <rafael.j.wysocki@intel.com> thermal: intel: int340x: Rework updating trip points
It is generally invalid to change the trip point indices after they have been exposed via sysfs.
Moreover, the thermal objects in the ACPI namespace cannot go away and appear on the fly. In practice, the only thing that can happen when the INT3403_PERF_TRIP_POINT_CHANGED notification is sent by the platform firmware is a change of the return values of those thermal objects.
For this reason, add a special function for updating the trip point temperatures after re-evaluating the respective ACPI thermal objects and change int3403_notify() to invoke it instead of int340x_thermal_read_trips() that would change the trip point indices on errors. Also remove the locking from the latter, because it is only called before registering the thermal zone and it cannot race with the zone's callbacks.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
H A D | int3403_thermal.c | diff b1bf9dbffc3049ca22ab36cb807b671655a936d0 Wed Jan 25 15:52:25 CET 2023 Rafael J. Wysocki <rafael.j.wysocki@intel.com> thermal: intel: int340x: Rework updating trip points
It is generally invalid to change the trip point indices after they have been exposed via sysfs.
Moreover, the thermal objects in the ACPI namespace cannot go away and appear on the fly. In practice, the only thing that can happen when the INT3403_PERF_TRIP_POINT_CHANGED notification is sent by the platform firmware is a change of the return values of those thermal objects.
For this reason, add a special function for updating the trip point temperatures after re-evaluating the respective ACPI thermal objects and change int3403_notify() to invoke it instead of int340x_thermal_read_trips() that would change the trip point indices on errors. Also remove the locking from the latter, because it is only called before registering the thermal zone and it cannot race with the zone's callbacks.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
H A D | int340x_thermal_zone.c | diff b1bf9dbffc3049ca22ab36cb807b671655a936d0 Wed Jan 25 15:52:25 CET 2023 Rafael J. Wysocki <rafael.j.wysocki@intel.com> thermal: intel: int340x: Rework updating trip points
It is generally invalid to change the trip point indices after they have been exposed via sysfs.
Moreover, the thermal objects in the ACPI namespace cannot go away and appear on the fly. In practice, the only thing that can happen when the INT3403_PERF_TRIP_POINT_CHANGED notification is sent by the platform firmware is a change of the return values of those thermal objects.
For this reason, add a special function for updating the trip point temperatures after re-evaluating the respective ACPI thermal objects and change int3403_notify() to invoke it instead of int340x_thermal_read_trips() that would change the trip point indices on errors. Also remove the locking from the latter, because it is only called before registering the thermal zone and it cannot race with the zone's callbacks.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|