diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-01-23 19:38:31 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-01-24 21:13:42 +0100 |
commit | 7a0e39748861272e6f4b088d5a7e7ffa53c4d5eb (patch) | |
tree | b1edac014e54af7e69521e212523dea1bb55ed25 /include | |
parent | thermal: intel: intel_pch: Add support for Wellsburg PCH (diff) | |
download | linux-7a0e39748861272e6f4b088d5a7e7ffa53c4d5eb.tar.xz linux-7a0e39748861272e6f4b088d5a7e7ffa53c4d5eb.zip |
thermal: ACPI: Add ACPI trip point routines
Add library routines to populate a generic thermal trip point
structure with data obtained by evaluating a specific object in the
ACPI Namespace.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Co-developed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 30353e4b1424..23c2617156b5 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -346,6 +346,14 @@ int thermal_zone_get_num_trips(struct thermal_zone_device *tz); int thermal_zone_get_crit_temp(struct thermal_zone_device *tz, int *temp); +#ifdef CONFIG_THERMAL_ACPI +int thermal_acpi_trip_active(struct acpi_device *adev, int id, + struct thermal_trip *trip); +int thermal_acpi_trip_passive(struct acpi_device *adev, struct thermal_trip *trip); +int thermal_acpi_trip_hot(struct acpi_device *adev, struct thermal_trip *trip); +int thermal_acpi_trip_critical(struct acpi_device *adev, struct thermal_trip *trip); +#endif + #ifdef CONFIG_THERMAL struct thermal_zone_device *thermal_zone_device_register(const char *, int, int, void *, struct thermal_zone_device_ops *, |