Skip to content

cpufreq: Get rid of cpufreq-dt's platform data

Viresh Kumar linux-arm-kernel linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10PM / OPP: Propagate the error returned by _find_opp_table()drivers/base/power/opp/cpu.c+1 -11 reply
2/10PM / OPP: Add missing doc style commentsdrivers/base/power/opp/cpu.c+58 -11 reply
3/10PM / OPP: dev_pm_opp_set_sharing_cpus() doesn't depend on CONFIG_OFinclude/linux/pm_opp.h+6 -61 reply
4/10PM / OPP: Relocate dev_pm_opp_set_sharing_cpus()drivers/base/power/opp/cpu.c+56 -561 reply
5/10PM / OPP: Mark shared-opp for non-dt casedrivers/base/power/opp/cpu.c+3 -01 reply
6/10PM / OPP: Add dev_pm_opp_get_sharing_cpus()drivers/base/power/opp/cpu.c include/linux/pm_opp.h+51 -02 replies
7/10cpufreq: dt: Identify cpu-sharing for platforms without operating-points-v2drivers/cpufreq/cpufreq-dt.c+9 -76 replies
8/10mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as sharedarch/arm/mach-mvebu/pmsu.c+7 -71 reply
9/10cpufreq: dt: Kill platform-datadrivers/cpufreq/cpufreq-dt.c include/linux/cpufreq-dt.h+1 -291 reply
10/10cpufreq: mvebu: Use generic platdev driverarch/arm/mach-mvebu/pmsu.c drivers/cpufreq/cpufreq-dt-platdev.c+2 -28 replies

Reviews trailers per patch

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

PatchStephen Boyd
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10
7/10
8/10
9/10R-b
10/10

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 00/10] cpufreq: Get rid of cpufreq-dt's platform data

Hi Guys,

The aim of the series is to kill the users of cpufreq-dt's platform data, i.e. mvebu. And because that required a new API to the OPP core, this just became a mix of cpufreq and OPP patches.

The first four patches does some sort of cleanup of the OPP core to base the next patches. Fifth one sets the shared_opp flag in opp-tables (required by later patches). Sixth one adds a new API for opp-v1 users, to get the CPUs sharing an OPP table.

Seventh to tenth update cpufreq-dt and mvebu to get rid of platform data.

@Rafael: The last patch touches the compatible-list array in cpufreq-dt-platdev.c, which is also touched by
'[PATCH 0/8] cpufreq: dt: Don't create platform-device from platform code'.

So, the last one has some sort of dependency on that series, otherwise all other patches can be applied cleanly.

@Arnd: Can you please look at patches 7-10 ..

Viresh Kumar (10):
PM / OPP: Propagate the error returned by _find_opp_table() PM / OPP: Add missing doc style comments
PM / OPP: dev_pm_opp_set_sharing_cpus() doesn't depend on CONFIG_OF PM / OPP: Relocate dev_pm_opp_set_sharing_cpus()
PM / OPP: Mark shared-opp for non-dt case
PM / OPP: Add dev_pm_opp_get_sharing_cpus()
cpufreq: dt: Identify cpu-sharing for platforms without
operating-points-v2
mvebu: Use dev_pm_opp_set_sharing_cpus() to mark OPP tables as shared
cpufreq: dt: Kill platform-data
cpufreq: mvebu: Use generic platdev driver

 arch/arm/mach-mvebu/pmsu.c           |  14 ++-
 drivers/base/power/opp/cpu.c         | 187 +++++++++++++++++++++++++++--------
 drivers/cpufreq/cpufreq-dt-platdev.c |   2 +
 drivers/cpufreq/cpufreq-dt.c         |  22 ++---
 include/linux/cpufreq-dt.h           |  24 -----
 include/linux/pm_opp.h               |  18 ++--
 6 files changed, 176 insertions(+), 91 deletions(-)
 delete mode 100644 include/linux/cpufreq-dt.h
Signature · 1 line
2.7.1.410.g6faf27b