Skip to content

cpufreq: create & use cpufreq_generic_init() routine

Viresh Kumar cpufreq linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14cpufreq: create cpufreq_generic_init() routinedrivers/cpufreq/cpufreq.c include/linux/cpufreq.h+34 -00 replies
2/14cpufreq: cpu0: use cpufreq_generic_init() routinedrivers/cpufreq/cpufreq-cpu0.c+1 -180 replies
3/14cpufreq: dbx500: use cpufreq_generic_init() routinedrivers/cpufreq/dbx500-cpufreq.c+1 -201 reply
4/14cpufreq: exynos: use cpufreq_generic_init() routinedrivers/cpufreq/exynos-cpufreq.c drivers/cpufreq/exynos5440-cpufreq.c+3 -180 replies
5/14cpufreq: imx6q: use cpufreq_generic_init() routinedrivers/cpufreq/imx6q-cpufreq.c+1 -120 replies
6/14cpufreq: kirkwood: use cpufreq_generic_init() routinedrivers/cpufreq/kirkwood-cpufreq.c+1 -40 replies
7/14cpufreq: maple: use cpufreq_generic_init() routinedrivers/cpufreq/maple-cpufreq.c+1 -80 replies
8/14cpufreq: pasemi: use cpufreq_generic_init() routinedrivers/cpufreq/pasemi-cpufreq.c+1 -80 replies
9/14cpufreq: pmac64: use cpufreq_generic_init() routinedrivers/cpufreq/pmac64-cpufreq.c+1 -80 replies
10/14cpufreq: s3c: use cpufreq_generic_init() routinedrivers/cpufreq/s3c2416-cpufreq.c drivers/cpufreq/s3c24xx-cpufreq.c drivers/cpufreq/s3c64xx-cpufreq.c+5 -190 replies
11/14cpufreq: s5pv210: use cpufreq_generic_init() routinedrivers/cpufreq/s5pv210-cpufreq.c+1 -30 replies
12/14cpufreq: sa11x0: use cpufreq_generic_init() routinedrivers/cpufreq/sa1100-cpufreq.c drivers/cpufreq/sa1110-cpufreq.c+2 -100 replies
13/14cpufreq: spear: use cpufreq_generic_init() routinedrivers/cpufreq/spear-cpufreq.c+2 -120 replies
14/14cpufreq: tegra: use cpufreq_generic_init() routinedrivers/cpufreq/tegra-cpufreq.c+9 -50 replies

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/14
2/14
3/14A-b
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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/14] cpufreq: create & use cpufreq_generic_init() routine

Many CPUFreq drivers for SMP system (where all cores share same clock lines), do similar stuff in their ->init() part.

This patch creates a generic routine in cpufreq core which can be used by these so that we can remove some redundant code. And later part of patchset makes other drivers use this infrastructure.

Many drivers which weren't setting policy->cpus haven't been updated as they might have separate clocks for CPUs and setting all CPUs in policy->cpus may corrupt them..

This is Sixth part of my cleanup work for CPUFreq, first five are (And obviously its rebased over them):

1: cpufreq: Introduce cpufreq_table_validate_and_show()
https://lkml.org/lkml/2013/8/8/263

2: cpufreq: define generic routines for cpufreq drivers
https://lkml.org/lkml/2013/8/10/48

3. CPUFreq: Implement light weight ->target(): for 3.13
https://lkml.org/lkml/2013/8/13/349

4. CPUFreq: set policy->cur in cpufreq core instead of drivers
https://lkml.org/lkml/2013/8/14/288

5. CPUFreq: Move freq change notifications out of drivers
https://lkml.org/lkml/2013/8/15/506

All these are pushed here:
https://git.linaro.org/gitweb?p=people/vireshk/linux.git;a=shortlog;h=refs/heads/for-v3.13

Viresh Kumar (14):
cpufreq: create cpufreq_generic_init() routine
cpufreq: cpu0: use cpufreq_generic_init() routine
cpufreq: dbx500: use cpufreq_generic_init() routine
cpufreq: exynos: use cpufreq_generic_init() routine
cpufreq: imx6q: use cpufreq_generic_init() routine
cpufreq: kirkwood: use cpufreq_generic_init() routine
cpufreq: maple: use cpufreq_generic_init() routine
cpufreq: pasemi: use cpufreq_generic_init() routine
cpufreq: pmac64: use cpufreq_generic_init() routine
cpufreq: s3c: use cpufreq_generic_init() routine
cpufreq: s5pv210: use cpufreq_generic_init() routine
cpufreq: sa11x0: use cpufreq_generic_init() routine
cpufreq: spear: use cpufreq_generic_init() routine
cpufreq: tegra: use cpufreq_generic_init() routine

 drivers/cpufreq/cpufreq-cpu0.c       | 19 +------------------
 drivers/cpufreq/cpufreq.c            | 31 +++++++++++++++++++++++++++++++
 drivers/cpufreq/dbx500-cpufreq.c     | 21 +--------------------
 drivers/cpufreq/exynos-cpufreq.c     |  7 +------
 drivers/cpufreq/exynos5440-cpufreq.c | 14 ++------------
 drivers/cpufreq/imx6q-cpufreq.c      | 13 +------------
 drivers/cpufreq/kirkwood-cpufreq.c   |  5 +----
 drivers/cpufreq/maple-cpufreq.c      |  9 +--------
 drivers/cpufreq/pasemi-cpufreq.c     |  9 +--------
 drivers/cpufreq/pmac64-cpufreq.c     |  9 +--------
 drivers/cpufreq/s3c2416-cpufreq.c    |  6 ++----
 drivers/cpufreq/s3c24xx-cpufreq.c    | 13 +------------
 drivers/cpufreq/s3c64xx-cpufreq.c    |  5 ++---
 drivers/cpufreq/s5pv210-cpufreq.c    |  4 +---
 drivers/cpufreq/sa1100-cpufreq.c     |  6 +-----
 drivers/cpufreq/sa1110-cpufreq.c     |  6 +-----
 drivers/cpufreq/spear-cpufreq.c      | 14 ++------------
 drivers/cpufreq/tegra-cpufreq.c      | 14 +++++++++-----
 include/linux/cpufreq.h              |  3 +++
 19 files changed, 63 insertions(+), 145 deletions(-)
Signature · 1 line
1.7.12.rc2.18.g61b472e