From: viresh.kumar@linaro.org (Viresh Kumar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 00/35] CPUFreq: Implement light weight ->target(): for 3.13
Date: Tue, 13 Aug 2013 19:01:40 +0530 [thread overview]
Message-ID: <cover.1376392602.git.viresh.kumar@linaro.org> (raw)
In-Reply-To: <a>
Currently prototype of cpufreq_drivers target routines is:
int target(struct cpufreq_policy *policy, unsigned int target_freq,
unsigned int relation);
And most of the drivers call cpufreq_frequency_table_target() to get a valid
index of their frequency table which is closest to the target_freq. And they
don't use target_freq and relation after it.
So, it makes sense to just do this work in cpufreq core before calling
cpufreq_frequency_table_target() and simply pass index instead. But this can be
done only with drivers which expose their frequency table with cpufreq core. For
others we need to stick with the old prototype of target() until those drivers
are converted to expose frequency tables.
There are 7 drivers after this patchset which still use the heavy weight
version, i.e. target() and 44 drivers have adopted this new approach, i.e.
target_index().
Once those 7 drivers are also moved to use .target_index(), .target() will be
removed completely.
This is part 3 of my generic cpufreq cleanup stuff.. First two are posted here
and this one is rebased of 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
All these are pushed here:
https://git.linaro.org/gitweb?p=people/vireshk/linux.git;a=shortlog;h=refs/heads/for-v3.13
V1->V2:
------
- Must be less ugly this time :)
- new interface is named as target_index() instead of target()
- old interface is kept as target() instead of target_old()
- few more drivers got converted to use this infrastructure (5)
- Documentation updates
- CONFIG_CPU_FREQ_TABLE removed completely as core depends on it now
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: David S. Miller <davem@davemloft.net>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-cris-kernel at axis.com
Cc: Mikael Starvik <starvik@axis.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: sparclinux at vger.kernel.org
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Steven Miao <realmz6@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Viresh Kumar (35):
cpufreq: Implement light weight ->target_index() routine
cpufreq: remove CONFIG_CPU_FREQ_TABLE
cpufreq: acpi: Covert to light weight ->target_index() routine
cpufreq: arm_big_little: Covert to light weight ->target_index()
routine
cpufreq: at32ap: Covert to light weight ->target_index() routine
cpufreq: blackfin: Covert to light weight ->target_index() routine
cpufreq: cpu0: Covert to light weight ->target_index() routine
cpufreq: cris: Covert to light weight ->target_index() routine
cpufreq: davinci: Covert to light weight ->target_index() routine
cpufreq: dbx500: Covert to light weight ->target_index() routine
cpufreq: e_powersaver: Covert to light weight ->target_index()
routine
cpufreq: elanfreq: Covert to light weight ->target_index() routine
cpufreq: exynos: Covert to light weight ->target_index() routine
cpufreq: ia64: Covert to light weight ->target_index() routine
cpufreq: imx6q: Covert to light weight ->target_index() routine
cpufreq: kirkwood: Covert to light weight ->target_index() routine
cpufreq: longhaul: Covert to light weight ->target_index() routine
cpufreq: loongson2: Covert to light weight ->target_index() routine
cpufreq: maple: Covert to light weight ->target_index() routine
cpufreq: omap: Covert to light weight ->target_index() routine
cpufreq: p4: Covert to light weight ->target_index() routine
cpufreq: pasemi: Covert to light weight ->target_index() routine
cpufreq: pmac32: Covert to light weight ->target_index() routine
cpufreq: powernow: Covert to light weight ->target_index() routine
cpufreq: ppc: Covert to light weight ->target_index() routine
cpufreq: pxa: Covert to light weight ->target_index() routine
cpufreq: s3c2416: Covert to light weight ->target_index() routine
cpufreq: s3c64xx: Covert to light weight ->target_index() routine
cpufreq: s5pv210: Covert to light weight ->target_index() routine
cpufreq: sa11x0: Covert to light weight ->target_index() routine
cpufreq: sc520: Covert to light weight ->target_index() routine
cpufreq: sparc: Covert to light weight ->target_index() routine
cpufreq: SPEAr: Covert to light weight ->target_index() routine
cpufreq: speedstep: Covert to light weight ->target_index() routine
cpufreq: tegra: Covert to light weight ->target_index() routine
Documentation/cpu-freq/cpu-drivers.txt | 27 ++++++++++------
Documentation/cpu-freq/governors.txt | 4 +--
arch/arm/mach-davinci/Kconfig | 1 -
arch/arm/mach-pxa/Kconfig | 3 --
arch/arm/mach-sa1100/generic.c | 20 ------------
arch/arm/mach-sa1100/generic.h | 2 --
arch/arm/mach-ux500/Kconfig | 1 -
arch/blackfin/Kconfig | 1 -
arch/cris/Kconfig | 2 --
drivers/cpufreq/Kconfig | 11 -------
drivers/cpufreq/Kconfig.arm | 11 -------
drivers/cpufreq/Kconfig.powerpc | 6 ----
drivers/cpufreq/Kconfig.x86 | 13 --------
drivers/cpufreq/Makefile | 5 +--
drivers/cpufreq/acpi-cpufreq.c | 21 ++++---------
drivers/cpufreq/arm_big_little.c | 17 +++-------
drivers/cpufreq/at32ap-cpufreq.c | 23 +++-----------
drivers/cpufreq/blackfin-cpufreq.c | 17 +++-------
drivers/cpufreq/cpufreq-cpu0.c | 17 ++--------
drivers/cpufreq/cpufreq.c | 57 ++++++++++++++++++++++++++--------
drivers/cpufreq/cris-artpec3-cpufreq.c | 18 ++---------
drivers/cpufreq/cris-etraxfs-cpufreq.c | 17 ++--------
drivers/cpufreq/davinci-cpufreq.c | 16 ++--------
drivers/cpufreq/dbx500-cpufreq.c | 16 ++--------
drivers/cpufreq/e_powersaver.c | 17 ++--------
drivers/cpufreq/elanfreq.c | 34 ++------------------
drivers/cpufreq/exynos-cpufreq.c | 21 ++-----------
drivers/cpufreq/exynos5440-cpufreq.c | 13 ++------
drivers/cpufreq/ia64-acpi-cpufreq.c | 21 ++-----------
drivers/cpufreq/imx6q-cpufreq.c | 17 ++--------
drivers/cpufreq/kirkwood-cpufreq.c | 19 ++----------
drivers/cpufreq/longhaul.c | 13 ++------
drivers/cpufreq/loongson2_cpufreq.c | 21 +++----------
drivers/cpufreq/maple-cpufreq.c | 16 +++-------
drivers/cpufreq/omap-cpufreq.c | 31 ++----------------
drivers/cpufreq/p4-clockmod.c | 18 +++--------
drivers/cpufreq/pasemi-cpufreq.c | 12 ++-----
drivers/cpufreq/pmac32-cpufreq.c | 12 ++-----
drivers/cpufreq/pmac64-cpufreq.c | 17 +++-------
drivers/cpufreq/powernow-k6.c | 35 +++------------------
drivers/cpufreq/powernow-k7.c | 22 +++----------
drivers/cpufreq/powernow-k8.c | 24 +++++---------
drivers/cpufreq/ppc-corenet-cpufreq.c | 15 +++------
drivers/cpufreq/ppc_cbe_cpufreq.c | 12 ++-----
drivers/cpufreq/pxa2xx-cpufreq.c | 13 ++------
drivers/cpufreq/pxa3xx-cpufreq.c | 17 ++--------
drivers/cpufreq/s3c2416-cpufreq.c | 17 +++-------
drivers/cpufreq/s3c64xx-cpufreq.c | 18 +++--------
drivers/cpufreq/s5pv210-cpufreq.c | 54 +++++++++-----------------------
drivers/cpufreq/sa1100-cpufreq.c | 24 +++-----------
drivers/cpufreq/sa1110-cpufreq.c | 26 +++-------------
drivers/cpufreq/sc520_freq.c | 19 ++----------
drivers/cpufreq/sparc-us2e-cpufreq.c | 21 ++-----------
drivers/cpufreq/sparc-us3-cpufreq.c | 23 ++------------
drivers/cpufreq/spear-cpufreq.c | 12 +++----
drivers/cpufreq/speedstep-centrino.c | 26 +++++-----------
drivers/cpufreq/speedstep-ich.c | 24 ++++----------
drivers/cpufreq/speedstep-smi.c | 20 +++---------
drivers/cpufreq/tegra-cpufreq.c | 12 ++-----
drivers/thermal/Kconfig | 1 -
include/linux/cpufreq.h | 4 ++-
61 files changed, 238 insertions(+), 809 deletions(-)
--
1.7.12.rc2.18.g61b472e
next prev parent reply other threads:[~2013-08-13 13:31 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a>
2011-11-22 15:54 ` [PATCH v7 0/3] ARM: mxs: add recording support for saif Dong Aisheng
2011-11-24 7:36 ` Shawn Guo
2011-11-24 7:46 ` Shawn Guo
2011-11-24 7:41 ` Uwe Kleine-König
2011-11-24 7:49 ` Wolfram Sang
2011-11-24 8:23 ` Shawn Guo
2011-11-24 10:46 ` Wolfram Sang
2011-11-22 15:54 ` [PATCH v7 1/3] ARM: mxs: add saif clkmux functions Dong Aisheng
2011-11-22 15:54 ` [PATCH v7 2/3] ARM: mx28evk: add platform data for saif Dong Aisheng
2011-11-22 15:54 ` [PATCH v7 3/3] ARM: mx28evk: set a initial clock rate " Dong Aisheng
2012-03-13 12:33 ` [PATCH 1/5 v4] i2c/gpio: add DT support Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 14:08 ` Wolfram Sang
2012-03-13 16:47 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 19:46 ` Wolfram Sang
2012-03-15 15:56 ` [PATCH 1/5 v5] " Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 12:33 ` [PATCH 2/5 v4] ARM: at91: sam9g20 add i2c " Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 12:33 ` [PATCH 3/5 v4] ARM: at91: usb_a9g20 add DT i2c support Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 12:33 ` [PATCH 4/5 v4] ARM: at91: sam9g45 add i2c DT support Jean-Christophe PLAGNIOL-VILLARD
2012-03-13 12:33 ` [PATCH 5/5 v4] ARM: at91: sam9x5 " Jean-Christophe PLAGNIOL-VILLARD
2013-08-13 13:31 ` Viresh Kumar [this message]
2013-08-13 13:32 ` [PATCH V2 01/35] cpufreq: Implement light weight ->target_index() routine Viresh Kumar
2013-08-18 10:41 ` amit daniel kachhap
2013-08-19 4:37 ` Viresh Kumar
2013-08-19 6:16 ` amit daniel kachhap
2013-08-19 6:19 ` Viresh Kumar
2013-08-19 6:46 ` amit daniel kachhap
2013-08-19 6:49 ` Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 02/35] cpufreq: remove CONFIG_CPU_FREQ_TABLE Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 03/35] cpufreq: acpi: Covert to light weight ->target_index() routine Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 04/35] cpufreq: arm_big_little: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 05/35] cpufreq: at32ap: " Viresh Kumar
2013-08-14 8:00 ` Hans-Christian Egtvedt
2013-08-13 13:32 ` [PATCH V2 06/35] cpufreq: blackfin: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 07/35] cpufreq: cpu0: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 08/35] cpufreq: cris: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 09/35] cpufreq: davinci: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 10/35] cpufreq: dbx500: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 11/35] cpufreq: e_powersaver: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 12/35] cpufreq: elanfreq: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 13/35] cpufreq: exynos: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 14/35] cpufreq: ia64: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 15/35] cpufreq: imx6q: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 16/35] cpufreq: kirkwood: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 17/35] cpufreq: longhaul: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 18/35] cpufreq: loongson2: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 19/35] cpufreq: maple: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 20/35] cpufreq: omap: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 21/35] cpufreq: p4: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 22/35] cpufreq: pasemi: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 23/35] cpufreq: pmac32: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 24/35] cpufreq: powernow: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 25/35] cpufreq: ppc: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 26/35] cpufreq: pxa: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 27/35] cpufreq: s3c2416: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 28/35] cpufreq: s3c64xx: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 29/35] cpufreq: s5pv210: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 30/35] cpufreq: sa11x0: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 31/35] cpufreq: sc520: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 32/35] cpufreq: sparc: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 33/35] cpufreq: SPEAr: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 34/35] cpufreq: speedstep: " Viresh Kumar
2013-08-13 13:32 ` [PATCH V2 35/35] cpufreq: tegra: " Viresh Kumar
2013-08-13 13:46 ` [PATCH V2 00/35] CPUFreq: Implement light weight ->target(): for 3.13 Viresh Kumar
2013-08-14 5:29 ` Viresh Kumar
2014-01-03 3:01 ` [PATCH 0/3] mtd: gpmi: add subpage read support Huang Shijie
2014-02-21 6:51 ` Huang Shijie
2014-03-07 7:27 ` Brian Norris
2014-03-07 7:32 ` Huang Shijie
2014-03-07 7:34 ` Brian Norris
2014-01-03 3:01 ` [PATCH 1/3] mtd: nand: add "page" argument for read_subpage hook Huang Shijie
2014-01-03 3:01 ` [PATCH 2/3] mtd: gpmi: do not use the mtd->writesize Huang Shijie
2014-01-03 3:01 ` [PATCH 3/3] mtd: gpmi: add subpage read support Huang Shijie
2014-04-23 10:16 ` [PATCH v1 0/7] mtd: spi-nor: Add the DDR quad " Huang Shijie
2014-04-23 10:16 ` [PATCH v1 1/7] mtd: spi-nor: fix the wrong dummy value Huang Shijie
2014-04-23 19:41 ` Marek Vasut
2014-04-24 4:50 ` Huang Shijie
2014-04-24 13:45 ` Marek Vasut
2014-04-23 10:16 ` [PATCH v1 2/7] mtd: spi-nor: add DDR quad read support Huang Shijie
2014-04-23 19:45 ` Marek Vasut
2014-04-24 4:53 ` Huang Shijie
2014-04-24 13:43 ` Marek Vasut
2014-04-24 14:26 ` Huang Shijie
2014-04-23 10:16 ` [PATCH v1 3/7] Documentation: mtd: add a new document for SPI NOR flash Huang Shijie
2014-04-23 10:16 ` [PATCH v1 4/7] Documentation: fsl-quadspi: update the document Huang Shijie
2014-04-23 10:16 ` [PATCH v1 5/7] mtd: fsl-quadspi: get the dummy cycles for DDR Quad read from the DT property Huang Shijie
2014-04-23 19:48 ` Marek Vasut
2014-04-24 4:58 ` Huang Shijie
2014-04-24 13:41 ` Marek Vasut
2014-04-24 14:27 ` Huang Shijie
2014-04-23 10:16 ` [PATCH v1 6/7] mtd: fsl-quadspi: use the information stored in spi-nor{} Huang Shijie
2014-04-23 10:16 ` [PATCH v1 7/7] mtd: fsl-quadspi: add the DDR quad read support Huang Shijie
2024-12-01 23:46 ` [PATCH] arm64: dts: rockchip: enable rng on all rk356x Peter Robinson
2024-12-02 3:55 ` Dragan Simic
2024-12-02 10:40 ` Marcin Juszkiewicz
2024-12-02 12:01 ` Diederik de Haas
2024-12-02 14:50 ` Dragan Simic
2024-12-02 15:32 ` Heiko Stübner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1376392602.git.viresh.kumar@linaro.org \
--to=viresh.kumar@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).