Skip to content

cpufreq: Locking-related changes in cpufreq_offline() and cpufreq_remove_dev()

Rafael J. Wysocki linux-pm lkml 1 version In review

Get series with b4
b4 am 5585781.DvuYhMxLoT@kreacher

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cpufreq: Reorganize checks in cpufreq_offline()drivers/cpufreq/cpufreq.c+12 -121 reply
2/3cpufreq: Split cpufreq_offline()drivers/cpufreq/cpufreq.c+19 -141 reply
3/3cpufreq: Rearrange locking in cpufreq_remove_dev()drivers/cpufreq/cpufreq.c+14 -71 reply

Reviews trailers per patch

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

PatchViresh Kumar
1/3A-b
2/3A-b
3/3A-b

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 v1 0/3] cpufreq: Locking-related changes in cpufreq_offline() and cpufreq_remove_dev()

Hi,

This series is based on the observation that the policy rwsem is used (or rather not used) inconsistently in cpufreq_remove_dev() (in summary, it does things without holding the policy rwsem that are done under that rwsem elsewhere).

The first two patches are preparatory (but patch [1/3] is a good enough improvement by itself IMO) and patch [3/3] makes the essential change.

Please refer to the patch changelogs for details.

Thanks!