• Rafael J. Wysocki's avatar
    Merge ACPI thermal driver changes for 6.6-rc1. · b616959a
    Rafael J. Wysocki authored
    This reworks the ACPI thermal driver to use a table of generic trip
    point structures on top of the internal representation of trip points
    and removes thermal zone callbacks that are not necessary any more
    from it.
    
    It requires some relatively small changes to be made in the thermal core
    too and it is based on top of changes reworking ACPI device notification
    handling that are included in this merge.
    
    * acpi-thermal: (24 commits)
      ACPI: thermal: Eliminate code duplication from acpi_thermal_notify()
      ACPI: thermal: Drop unnecessary thermal zone callbacks
      ACPI: thermal: Rework thermal_get_trend()
      ACPI: thermal: Use trip point table to register thermal zones
      thermal: core: Rework and rename __for_each_thermal_trip()
      ACPI: thermal: Introduce struct acpi_thermal_trip
      ACPI: thermal: Carry out trip point updates under zone lock
      ACPI: thermal: Clean up acpi_thermal_register_thermal_zone()
      thermal: core: Add priv pointer to struct thermal_trip
      thermal: core: Introduce thermal_zone_device_exec()
      thermal: core: Do not handle trip points with invalid temperature
      ACPI: thermal: Drop redundant local variable from acpi_thermal_resume()
      ACPI: thermal: Do not attach private data to ACPI handles
      ACPI: thermal: Drop enabled flag from struct acpi_thermal_active
      ACPI: thermal: Drop nocrt parameter
      ACPI: thermal: Install Notify() handler directly
      ACPI: NFIT: Remove unnecessary .remove callback
      ACPI: NFIT: Install Notify() handler directly
      ACPI: HED: Install Notify() handler directly
      ACPI: battery: Install Notify() handler directly
      ...
    b616959a
thermal_core.c 40.4 KB