Skip to content

cpufreq: Migrate users of policy notifiers to QoS requests

Viresh Kumar acpica-devel dri-devel linux-acpi linux-doc linux-fbdev linux-pm linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 13 repliesIn review
  2. v110 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Added Acked-by tags
- Reordered to keep cleanups at the bottom
- Rebased over 5.3-rc1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10cpufreq: Add policy create/remove notifiersdrivers/cpufreq/cpufreq.c include/linux/cpufreq.h+16 -10 replies
2/10thermal: cpu_cooling: Switch to QoS requests instead of cpufreq notifierdrivers/thermal/cpu_cooling.c+26 -840 replies
3/10powerpc: macintosh: Switch to QoS requests instead of cpufreq notifierdrivers/macintosh/windfarm_cpufreq_clamp.c+50 -270 replies
4/10cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifierdrivers/cpufreq/ppc_cbe_cpufreq.c drivers/cpufreq/ppc_cbe_cpufreq.h drivers/cpufreq/ppc_cbe_cpufreq_pmi.c+86 -376 replies
5/10ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifierdrivers/acpi/processor_driver.c drivers/acpi/processor_perflib.c drivers/acpi/processor_thermal.c +1 more+137 -1167 replies
6/10arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFYdrivers/base/arch_topology.c+1 -11 reply
7/10video: sa1100fb: Remove cpufreq policy notifierdrivers/video/fbdev/sa1100fb.c drivers/video/fbdev/sa1100fb.h+0 -280 replies
8/10video: pxafb: Remove cpufreq policy notifierdrivers/video/fbdev/pxafb.c drivers/video/fbdev/pxafb.h+0 -220 replies
9/10cpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier eventsdrivers/cpufreq/cpufreq.c include/linux/cpufreq.h+9 -330 replies
10/10Documentation: cpufreq: Update policy notifier documentationDocumentation/cpu-freq/core.txt+4 -120 replies

Reviews trailers per patch

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

PatchBartlomiej ZolnierkiewiczGreg Kroah-Hartman
1/10
2/10
3/10
4/10
5/10
6/10A-b
7/10A-b
8/10A-b
9/10
10/10

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 00/10] cpufreq: Migrate users of policy notifiers to QoS requests

Hello,

Now that cpufreq core supports taking QoS requests for min/max cpu frequencies, lets migrate rest of the users to using them instead of the policy notifiers.

The CPUFREQ_NOTIFY and CPUFREQ_ADJUST events of the policy notifiers are removed as a result, but we have to add CPUFREQ_CREATE_POLICY and CPUFREQ_REMOVE_POLICY events to it for the acpi stuff specifically, though they are also used by arch_topology stuff now. So the policy notifiers aren't completely removed.

Boot tested on my x86 PC and ARM hikey board.

This has already gone through build bot for a few days now.

V1->V2:
- Added Acked-by tags
- Reordered to keep cleanups at the bottom
- Rebased over 5.3-rc1

--
viresh

Viresh Kumar (10):
cpufreq: Add policy create/remove notifiers
thermal: cpu_cooling: Switch to QoS requests instead of cpufreq
notifier
powerpc: macintosh: Switch to QoS requests instead of cpufreq notifier
cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq
notifier
ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier
arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY
video: sa1100fb: Remove cpufreq policy notifier
video: pxafb: Remove cpufreq policy notifier
cpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier
events
Documentation: cpufreq: Update policy notifier documentation

 Documentation/cpu-freq/core.txt            |  16 +--
 drivers/acpi/processor_driver.c            |  44 ++++++++-
 drivers/acpi/processor_perflib.c           | 106 +++++++++-----------
 drivers/acpi/processor_thermal.c           |  81 ++++++++-------
 drivers/base/arch_topology.c               |   2 +-
 drivers/cpufreq/cpufreq.c                  |  51 ++++------
 drivers/cpufreq/ppc_cbe_cpufreq.c          |  19 +++-
 drivers/cpufreq/ppc_cbe_cpufreq.h          |   8 ++
 drivers/cpufreq/ppc_cbe_cpufreq_pmi.c      |  96 +++++++++++-------
 drivers/macintosh/windfarm_cpufreq_clamp.c |  77 ++++++++++-----
 drivers/thermal/cpu_cooling.c              | 110 +++++----------------
 drivers/video/fbdev/pxafb.c                |  21 ----
 drivers/video/fbdev/pxafb.h                |   1 -
 drivers/video/fbdev/sa1100fb.c             |  27 -----
 drivers/video/fbdev/sa1100fb.h             |   1 -
 include/acpi/processor.h                   |  22 +++--
 include/linux/cpufreq.h                    |   4 +-
 17 files changed, 327 insertions(+), 359 deletions(-)
Signature · 1 line
2.21.0.rc0.269.g1a574e7a288b