Skip to content

thermal: rework core to improve userspace interaction

Eduardo Valentin linux-pm linux-sh 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 4 repliesIn review
  2. v12 of 3 patches 0 repliesSuperseded

Changelog from the cover letter

V1 -> V2: Fixes patch 2, and added Srivinas reviewed by on patch 1.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal: setup monitor only once after handling tripsdrivers/thermal/thermal_core.c+6 -50 replies
2/3thermal: rework core to allow emul_temp to be treated as regular tempdrivers/thermal/thermal_core.c+20 -131 reply
3/3thermal: improve hot trip handlingdrivers/thermal/thermal_core.c+52 -03 replies

Reviews trailers per patch

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

PatchPandruvada, SrinivasSrinivas Pandruvada
1/3R-b
2/3R-b
3/3

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

Read the v2 thread

Cover letter [PATCHv2 0/3] thermal: rework core to improve userspace interaction

Hello Rui, linux-pm

Changelog:
V1 -> V2: Fixes patch 2, and added Srivinas reviewed by on patch 1.

Please consider these three patches in the thermal core to improve the interaction with userspace.

The first is already in its second version. It avoids reconfiguring monitor period. Now the thermal core configures the monitor only after handling all trip points.

The second is about improving emul_temp. The background here is to allow using emul_temp, even if the thermal zone is not fully setup, with a missing .get_temp().

The third is to improve hot trip points handling. Hot trip points are described as notification entry points. However, we do very little on them. This patch adds a uevent to propagate the event to userspace. Today, we rely on thermal zone driver. I believe having the same message coming on every thermal zone makes more sense. However, I did not remove the .notify() callback, and it should behave the same.

Eduardo Valentin (3):
thermal: setup monitor only once after handling trips
thermal: rework core to allow emul_temp to be treated as regular temp
thermal: improve hot trip handling

 drivers/thermal/thermal_core.c | 96 ++++++++++++++++++++++++++++++++++--------
 1 file changed, 78 insertions(+), 18 deletions(-)
Signature · 1 line
2.5.0