From: Rafael J. Wysocki Date: Thu, 4 Jan 2024 12:01:51 +0000 (+0100) Subject: Merge branch 'acpi-thermal' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f845351a40623c80c4d48404f042c193a8c5334a;p=linux.git Merge branch 'acpi-thermal' Merge ACPI thermal zone driver updates for 6.8-rc1: - Use generic ACPI helpers for evaluating trip point temperature objects in the ACPI thermal zone driver (Rafael J. Wysockii, Arnd Bergmann). - Add Thermal fast Sampling Period (_TFP) support to the ACPI thermal zone driver (Jeff Brasen). * acpi-thermal: ACPI: thermal_lib: include "internal.h" for function prototypes ACPI: thermal: Add Thermal fast Sampling Period (_TFP) support ACPI: thermal: Use library functions to obtain trip point temperature values ACPI: thermal_lib: Add functions returning temperature in deci-Kelvin thermal: ACPI: Move the ACPI thermal library to drivers/acpi/ --- f845351a40623c80c4d48404f042c193a8c5334a diff --cc drivers/acpi/internal.h index 266aad006fe4a,a3728f70a7954..6588525c45efa --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h @@@ -85,15 -85,11 +85,20 @@@ bool acpi_scan_is_offline(struct acpi_d acpi_status acpi_sysfs_table_handler(u32 event, void *table, void *context); void acpi_scan_table_notify(void); + int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp); + int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp); + int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp); + int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp); + +#ifdef CONFIG_ARM64 +int acpi_arch_thermal_cpufreq_pctg(void); +#else +static inline int acpi_arch_thermal_cpufreq_pctg(void) +{ + return 0; +} +#endif + /* -------------------------------------------------------------------------- Device Node Initialization / Removal -------------------------------------------------------------------------- */