Skip to content

thermal/intel_powerclamp: Conversion to kthread worker API and new CPU hotplug state

Petr Mladek linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3thermal/intel_powerclamp: Remove duplicated code that starts the kthreaddrivers/thermal/intel_powerclamp.c+20 -250 replies
2/3thermal/intel_powerclamp: Convert the kthread to kthread worker APIdrivers/thermal/intel_powerclamp.c+170 -1220 replies
3/3thermal/intel_powerclamp: Convert to CPU hotplug statedrivers/thermal/intel_powerclamp.c+35 -3413 replies

Reviews trailers per patch

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

PatchJacob Pan
1/3A-b
2/3A-b
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] thermal/intel_powerclamp: Conversion to kthread worker API and new CPU hotplug state

The kthread worker API enhancements are in 4.9-rc1. Therefore we could finally convert the intel_powerclamp kthreads to it.

The API hides a rather tricky code for the sleeping, freezing, and exiting checks. It should help to avoid races and maintain these operations.

Sebastian asked me to send also the conversion to the new CPU hotplug state machine on top of the kthread conversion.

IMPORTANT:

I have tested this on top of 4.9-rc1. But I needed to add ("sched/fair: Fix sched domains NULL deference in select_idle_sibling()") from linux-tip, see
https://lkml.kernel.org/r/[email protected]
Otherwise, the CPU hotplug failed very often.

Petr Mladek (2):
thermal/intel_powerclamp: Remove duplicated code that starts the
kthread
thermal/intel_powerclamp: Convert the kthread to kthread worker API

Sebastian Andrzej Siewior (1):
thermal/intel_powerclamp: Convert to CPU hotplug state

 drivers/thermal/intel_powerclamp.c | 374 +++++++++++++++++++++----------------
 1 file changed, 209 insertions(+), 165 deletions(-)
Signature · 1 line
1.8.5.6