* Re: [PATCH V2 Resend 13/34] cpufreq: ia64: Convert to light weight ->target_index() routine
@ 2013-10-23 4:26 Viresh Kumar
0 siblings, 0 replies; 3+ messages in thread
From: Viresh Kumar @ 2013-10-23 4:26 UTC (permalink / raw)
To: Luck, Tony; +Cc: rjw, linaro-kernel, patches, cpufreq, linux-pm, linux-kernel
On 22 October 2013 22:02, Luck, Tony <tony.luck@intel.com> wrote:
>> This patch converts existing .target() to newly defined light weight
>> .target_index() routine for this driver.
>>
>> CPUFreq core will call cpufreq_frequency_table_target() before calling this
>> routine and will pass index to it.
>>
>> Cc: Tony Luck <tony.luck@intel.com>
>> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>
> Tested-by: Tony Luck <tony.luck@intel.com>
Thanks Tony..
@Rafael: Count this Tested-by for 1/34 and 31/34 as he actually
tested both :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V2 Resend 00/34] CPUFreq Cleanup Part III
@ 2013-10-18 13:59 Viresh Kumar
2013-10-18 13:59 ` [PATCH V2 Resend 13/34] cpufreq: ia64: Convert to light weight ->target_index() routine Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2013-10-18 13:59 UTC (permalink / raw)
To: rjw; +Cc: linaro-kernel, patches, cpufreq, linux-pm, linux-kernel, Viresh Kumar
As Part II is already in your linux-next branch, I am sending Part III for
inclusion in bleeding-edge.
This is oriented around a light weight ->target_index() routine. CPUFreq
notifications would be moved to CPUFreq core in the next patchset that I will
send, as you suggested not to merge multiple series together.. Although both of
them are oriented towards a light weight ->target_index() routine.
This is rebased over your bleeding-edge branch + "cpufreq: create per policy
rwsem instead of per CPU cpu_policy_rwsem"..
Thanks.
Viresh Kumar (34):
cpufreq: Implement light weight ->target_index() routine
cpufreq: acpi: Convert to light weight ->target_index() routine
cpufreq: arm_big_little: Convert to light weight ->target_index()
routine
cpufreq: at32ap: Convert to light weight ->target_index() routine
cpufreq: blackfin: Convert to light weight ->target_index() routine
cpufreq: cpu0: Convert to light weight ->target_index() routine
cpufreq: cris: Convert to light weight ->target_index() routine
cpufreq: davinci: Convert to light weight ->target_index() routine
cpufreq: dbx500: Convert to light weight ->target_index() routine
cpufreq: e_powersaver: Convert to light weight ->target_index()
routine
cpufreq: elanfreq: Convert to light weight ->target_index() routine
cpufreq: exynos: Convert to light weight ->target_index() routine
cpufreq: ia64: Convert to light weight ->target_index() routine
cpufreq: imx6q: Convert to light weight ->target_index() routine
cpufreq: kirkwood: Convert to light weight ->target_index() routine
cpufreq: longhaul: Convert to light weight ->target_index() routine
cpufreq: loongson2: Convert to light weight ->target_index() routine
cpufreq: maple: Convert to light weight ->target_index() routine
cpufreq: omap: Convert to light weight ->target_index() routine
cpufreq: p4: Convert to light weight ->target_index() routine
cpufreq: pasemi: Convert to light weight ->target_index() routine
cpufreq: pmac32: Convert to light weight ->target_index() routine
cpufreq: powernow: Convert to light weight ->target_index() routine
cpufreq: ppc: Convert to light weight ->target_index() routine
cpufreq: pxa: Convert to light weight ->target_index() routine
cpufreq: s3c2416: Convert to light weight ->target_index() routine
cpufreq: s3c64xx: Convert to light weight ->target_index() routine
cpufreq: s5pv210: Convert to light weight ->target_index() routine
cpufreq: sa11x0: Convert to light weight ->target_index() routine
cpufreq: sc520: Convert to light weight ->target_index() routine
cpufreq: sparc: Convert to light weight ->target_index() routine
cpufreq: SPEAr: Convert to light weight ->target_index() routine
cpufreq: speedstep: Convert to light weight ->target_index() routine
cpufreq: tegra: Convert to light weight ->target_index() routine
Documentation/cpu-freq/cpu-drivers.txt | 27 ++++++++++------
Documentation/cpu-freq/governors.txt | 4 +--
arch/arm/mach-sa1100/generic.c | 20 ------------
arch/arm/mach-sa1100/generic.h | 2 --
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 | 21 +++----------
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 | 27 +++++-----------
drivers/cpufreq/speedstep-ich.c | 24 ++++----------
drivers/cpufreq/speedstep-smi.c | 20 +++---------
drivers/cpufreq/tegra-cpufreq.c | 12 ++-----
include/linux/cpufreq.h | 4 ++-
50 files changed, 242 insertions(+), 759 deletions(-)
--
1.7.12.rc2.18.g61b472e
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V2 Resend 13/34] cpufreq: ia64: Convert to light weight ->target_index() routine
2013-10-18 13:59 [PATCH V2 Resend 00/34] CPUFreq Cleanup Part III Viresh Kumar
@ 2013-10-18 13:59 ` Viresh Kumar
2013-10-22 16:32 ` Luck, Tony
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2013-10-18 13:59 UTC (permalink / raw)
To: rjw
Cc: linaro-kernel, patches, cpufreq, linux-pm, linux-kernel,
Viresh Kumar, Tony Luck
This patch converts existing .target() to newly defined light weight
.target_index() routine for this driver.
CPUFreq core will call cpufreq_frequency_table_target() before calling this
routine and will pass index to it.
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
drivers/cpufreq/ia64-acpi-cpufreq.c | 21 +++------------------
1 file changed, 3 insertions(+), 18 deletions(-)
diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c
index 90c6598..4695fa2 100644
--- a/drivers/cpufreq/ia64-acpi-cpufreq.c
+++ b/drivers/cpufreq/ia64-acpi-cpufreq.c
@@ -227,26 +227,11 @@ acpi_cpufreq_get (
static int
acpi_cpufreq_target (
struct cpufreq_policy *policy,
- unsigned int target_freq,
- unsigned int relation)
+ unsigned int index)
{
- struct cpufreq_acpi_io *data = acpi_io_data[policy->cpu];
- unsigned int next_state = 0;
- unsigned int result = 0;
-
- pr_debug("acpi_cpufreq_setpolicy\n");
-
- result = cpufreq_frequency_table_target(policy,
- data->freq_table, target_freq, relation, &next_state);
- if (result)
- return (result);
-
- result = processor_set_freq(data, policy, next_state);
-
- return (result);
+ return processor_set_freq(acpi_io_data[policy->cpu], policy, index);
}
-
static int
acpi_cpufreq_cpu_init (
struct cpufreq_policy *policy)
@@ -379,7 +364,7 @@ acpi_cpufreq_cpu_exit (
static struct cpufreq_driver acpi_cpufreq_driver = {
.verify = cpufreq_generic_frequency_table_verify,
- .target = acpi_cpufreq_target,
+ .target_index = acpi_cpufreq_target,
.get = acpi_cpufreq_get,
.init = acpi_cpufreq_cpu_init,
.exit = acpi_cpufreq_cpu_exit,
--
1.7.12.rc2.18.g61b472e
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-23 4:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-23 4:26 [PATCH V2 Resend 13/34] cpufreq: ia64: Convert to light weight ->target_index() routine Viresh Kumar
-- strict thread matches above, loose matches on Subject: below --
2013-10-18 13:59 [PATCH V2 Resend 00/34] CPUFreq Cleanup Part III Viresh Kumar
2013-10-18 13:59 ` [PATCH V2 Resend 13/34] cpufreq: ia64: Convert to light weight ->target_index() routine Viresh Kumar
2013-10-22 16:32 ` Luck, Tony
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).