Skip to content

ACPI: thermal: Use trip point table to register thermal zones

Rafael J. Wysocki linux-acpi linux-pm lkml 5 versions – In review

Get series with b4
b4 am 4503814.LvFx2qVVIh@kreacher

Versions newest first · linked by author and title

  1. v5 Latest11 patches 2 repliesIn review
  2. v410 patches 6 repliesSuperseded
  3. v38 patches 22 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches2 repliesSuperseded
v17 patches4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11thermal: core: Do not handle trip points with invalid temperaturedrivers/thermal/thermal_core.c+2 -10 replies
2/11thermal: core: Introduce thermal_zone_device_adjust()drivers/thermal/thermal_core.c include/linux/thermal.h+22 -00 replies
3/11thermal: core: Add priv pointer to struct thermal_tripinclude/linux/thermal.h+2 -00 replies
4/11ACPI: thermal: Clean up acpi_thermal_register_thermal_zone()drivers/acpi/thermal.c+16 -200 replies
5/11ACPI: thermal: Carry out trip point updates under zone lockdrivers/acpi/thermal.c+28 -132 replies
6/11ACPI: thermal: Introduce struct acpi_thermal_tripdrivers/acpi/thermal.c+45 -510 replies
7/11thermal: core: Rework and rename __for_each_thermal_trip()drivers/thermal/thermal_core.h drivers/thermal/thermal_trip.c include/linux/thermal.h+11 -140 replies
8/11ACPI: thermal: Use trip point table to register thermal zonesdrivers/acpi/thermal.c+86 -70 replies
8/11ACPI: thermal: Use trip point table to register thermal zonesdrivers/acpi/thermal.c+86 -70 replies
9/11ACPI: thermal: Rework thermal_get_trend()drivers/acpi/thermal.c+38 -300 replies
10/11ACPI: thermal: Drop unnecessary thermal zone callbacksdrivers/acpi/thermal.c+0 -1150 replies
11/11thermal: core: Eliminate code duplication from acpi_thermal_notify()drivers/acpi/thermal.c+10 -100 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchDaniel Lezcano
1/11A-b
2/11
3/11A-b
4/11
5/11
6/11
7/11
8/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/11] ACPI: thermal: Use trip point table to register thermal zones

Hi Everyone,

This is the 5th iteration of the $subject patch series and its original description below is still applicable

Quoted 10 lines · CEST Rafael J. Wysocki

This patch series makes the ACPI thermal driver register thermal zones with the help of thermal_zone_device_register_with_trips(), so it doesn't need to use the thermal zone callbacks related to trip points any more (and they are dropped in the last patch).

The approach presented here is quite radically different from the previous attempts, as it doesn't really rearrange the driver's internal data structures, but adds the trip table support on top of them. For this purpose, it uses an additional field in struct thermal_trip

This update follows the suggestion from here:

https://lore.kernel.org/linux-acpi/[email protected]/

and so it drops one patch and adds two new patches (one of them merely rearranging the ACPI thermal drivers data structures to allow the subsequent patches to be more straightforward).

Thanks!