Skip to content

Misc thermal cleanup and fixes

Daniel Lezcano linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v15 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Removed ordering the trip points change
- Removed mutex destroy change
- Added "No functional change intented" as requested by Rui
- Added the function declaration for_each_thermal_trip

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal/core: Fix unregistering netlink at thermal init timedrivers/thermal/thermal_core.c drivers/thermal/thermal_netlink.c drivers/thermal/thermal_netlink.h+11 -11 reply
2/3thermal/core: Remove unneeded ida_destroy()drivers/thermal/thermal_core.c+0 -21 reply
3/3thermal/core: Move the thermal trip code to a dedicated filedrivers/thermal/Makefile drivers/thermal/thermal_core.c drivers/thermal/thermal_core.h +2 more+188 -1511 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchZhang Rui
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Misc thermal cleanup and fixes

This series is based on linux-pm/thermal

It unregisters the netlink generic family for thermal in case the thermal framework fails to initialize, removes a unneeded ida_destroy() call and moves the thermal trip code in a separate file.

A couple of changes have been removed from the previous version:

- Ordering the trip points. Some consolidation is needed in the set_trip_temp ops before ordering the trip points, so this change is postpone

- Remove the mutex destroy call. Even if the call is not needed, the justification of the change is not accurate. So it is postponed also.

V2:
- Removed ordering the trip points change
- Removed mutex destroy change
- Added "No functional change intented" as requested by Rui
- Added the function declaration for_each_thermal_trip

Daniel Lezcano (3):
thermal/core: Fix unregistering netlink at thermal init time thermal/core: Remove unneeded ida_destroy() thermal/core: Move the thermal trip code to a dedicated file

 drivers/thermal/Makefile          |   4 +-
 drivers/thermal/thermal_core.c    |  93 +--------------
 drivers/thermal/thermal_core.h    |   4 +
 drivers/thermal/thermal_helpers.c |  62 ----------
 drivers/thermal/thermal_netlink.c |   5 +
 drivers/thermal/thermal_netlink.h |   3 +
 drivers/thermal/thermal_trip.c    | 182 ++++++++++++++++++++++++++++++
 7 files changed, 199 insertions(+), 154 deletions(-)
 create mode 100644 drivers/thermal/thermal_trip.c
Signature · 1 line
2.34.1