Skip to content

cpufreq: Locking fixes and cleanups

Viresh Kumar linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 1 replyIn review
  2. v47 patches 10 repliesSuperseded

Changes in v5 from the cover letter

- Changelog updated for 1-2 as suggested by Rafael
- 4th patch is dropped, which moved common tunable callbacks to cpufreq_governor.c
- 5-7 are resend on the V5 sent earlier, as reply to V4 of the series.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cpufreq: Merge cpufreq_offline_prepare/finish routinesdrivers/cpufreq/cpufreq.c+10 -260 replies
2/6cpufreq: Call __cpufreq_governor() with policy->rwsem helddrivers/cpufreq/cpufreq.c+33 -160 replies
3/6cpufreq: Remove cpufreq_governor_lockdrivers/cpufreq/cpufreq.c drivers/cpufreq/cpufreq_governor.h+0 -90 replies
4/6cpufreq: governor: No need to manage state machine nowdrivers/cpufreq/cpufreq_governor.c+5 -220 replies
5/6cpufreq: conservative: Update sample_delay_ns immediatelydrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+65 -830 replies
6/6cpufreq: ondemand: Rearrange od_dbs_timer() to avoid updating delaydrivers/cpufreq/cpufreq_ondemand.c+4 -50 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchJuri LelliShilpasri G Bhat
1/6T-b T-b
2/6T-b T-b
3/6T-b T-b
4/6T-b T-b
5/6T-b T-b
6/6

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 0/6] cpufreq: Locking fixes and cleanups

Hi Rafael,

These are rest of the patches that fix some more locking issues with policy->rwsem and do some minor optimization/cleanups.

V4->V5:
- Changelog updated for 1-2 as suggested by Rafael
- 4th patch is dropped, which moved common tunable callbacks to cpufreq_governor.c
- 5-7 are resend on the V5 sent earlier, as reply to V4 of the series.

Viresh Kumar (6):
cpufreq: Merge cpufreq_offline_prepare/finish routines
cpufreq: Call __cpufreq_governor() with policy->rwsem held
cpufreq: Remove cpufreq_governor_lock
cpufreq: governor: No need to manage state machine now
cpufreq: conservative: Update sample_delay_ns immediately
cpufreq: ondemand: Rearrange od_dbs_timer() to avoid updating delay

 drivers/cpufreq/cpufreq.c              | 93 ++++++++++++++++------------------
 drivers/cpufreq/cpufreq_conservative.c | 14 -----
 drivers/cpufreq/cpufreq_governor.c     | 90 ++++++++++++++++++++++++--------
 drivers/cpufreq/cpufreq_governor.h     |  3 +-
 drivers/cpufreq/cpufreq_ondemand.c     | 78 ++--------------------------
 5 files changed, 117 insertions(+), 161 deletions(-)
Signature · 1 line
2.7.1.370.gb2aa7f8