public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/20] Introduce new cpufreq helper macros
@ 2014-04-14 21:07 Stratos Karafotis
  2014-04-15  6:01 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Stratos Karafotis @ 2014-04-14 21:07 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar
  Cc: David S. Miller, Hans-Christian Egtvedt, Dirk Brandewie,
	Randy Dunlap, linux-doc, linux-kernel, cpufreq@vger.kernel.org,
	linux-pm@vger.kernel.org

Hi all,

This patch set introduces two freq_table helper macros which
can be used for iteration over cpufreq_frequency_table and
makes the necessary changes to cpufreq core and drivers that
use such an iteration procedure.

The motivation was a usage of common procedure to iterate over
cpufreq_frequency_table across all drivers and cpufreq core.

This was tested on a x86_64 platform.
Patches 4-17 compiled successfully but unfortunately I was not
able to compile test patches 18-20.


Stratos Karafotis (20):
  cpufreq: Introduce macros for cpufreq_frequency_table iteration
  cpufreq: acpi-cpufreq: Use cpufreq_for_each_entry macro for iteration
  cpufreq: stats: Use cpufreq_for_each_valid_entry macro for iteration
  cpufreq: arm_big_little: Use cpufreq_for_each_entry macro for
    iteration
  cpufreq: dbx500: Use cpufreq_for_each_entry macro for iteration
  cpufreq: elanfreq: Use cpufreq_for_each_entry macro for iteration
  cpufreq: exynos: Use cpufreq_for_each_entry macro for iteration
  cpufreq: exynos5440: Use cpufreq_for_each_entry macro for iteration
  cpufreq: longhaul: Use cpufreq_for_each_entry macro for iteration
  cpufreq: powernow-k6: Use cpufreq_for_each_entry macro for iteration
  cpufreq: s3c2416: Use cpufreq_for_each_valid_entry macro for iteration
  cpufreq: s3c64xx: Use cpufreq_for_each_valid_entry macro for iteration
  sh: clk: Use cpufreq_for_each_valid_entry macro for iteration
  thermal: cpu_cooling: Use cpufreq_for_each_valid_entry macro for
    iteration
  mfd: db8500-prcmu: Use cpufreq_for_each_entry macro for iteration
  mips: lemote 2f: se cpufreq_for_each_entry macro for iteration
  davinci: da850: Use cpufreq_for_each_entry macro for iteration
  cpufreq: pasemi: Use cpufreq_for_each_entry macro for iteration
  cpufreq: pcc_cbe: Use cpufreq_for_each_entry macro for iteration
  irda: sh_sir: Use cpufreq_for_each_valid_entry macro for iteration

 Documentation/cpu-freq/cpu-drivers.txt | 16 ++++++++++
 arch/arm/mach-davinci/da850.c          |  9 +++---
 arch/mips/loongson/lemote-2f/clock.c   | 15 ++++------
 drivers/cpufreq/acpi-cpufreq.c         | 10 +++----
 drivers/cpufreq/arm_big_little.c       | 18 ++++++-----
 drivers/cpufreq/cpufreq.c              | 11 +++++++
 drivers/cpufreq/cpufreq_stats.c        | 22 +++++---------
 drivers/cpufreq/dbx500-cpufreq.c       |  7 ++---
 drivers/cpufreq/elanfreq.c             |  8 ++---
 drivers/cpufreq/exynos-cpufreq.c       | 14 ++++-----
 drivers/cpufreq/exynos5440-cpufreq.c   | 30 +++++++++----------
 drivers/cpufreq/freq_table.c           | 55 ++++++++++++++++------------------
 drivers/cpufreq/longhaul.c             | 13 ++++----
 drivers/cpufreq/pasemi-cpufreq.c       | 10 +++----
 drivers/cpufreq/powernow-k6.c          | 13 ++++----
 drivers/cpufreq/ppc_cbe_cpufreq.c      |  9 +++---
 drivers/cpufreq/s3c2416-cpufreq.c      | 40 +++++++++++--------------
 drivers/cpufreq/s3c64xx-cpufreq.c      | 15 ++++------
 drivers/mfd/db8500-prcmu.c             | 18 +++++------
 drivers/net/irda/sh_sir.c              | 14 ++++-----
 drivers/sh/clk/core.c                  | 19 ++++--------
 drivers/thermal/cpu_cooling.c          | 33 ++++++++------------
 include/linux/cpufreq.h                | 21 +++++++++++++
 23 files changed, 211 insertions(+), 209 deletions(-)

-- 
1.9.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 00/20] Introduce new cpufreq helper macros
  2014-04-14 21:07 [PATCH 00/20] Introduce new cpufreq helper macros Stratos Karafotis
@ 2014-04-15  6:01 ` Viresh Kumar
  2014-04-15 11:03   ` Stratos Karafotis
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2014-04-15  6:01 UTC (permalink / raw)
  To: Stratos Karafotis
  Cc: Rafael J. Wysocki, David S. Miller, Hans-Christian Egtvedt,
	Dirk Brandewie, Randy Dunlap, linux-doc,
	Linux Kernel Mailing List, cpufreq@vger.kernel.org,
	linux-pm@vger.kernel.org

On 15 April 2014 02:37, Stratos Karafotis <stratosk@semaphore.gr> wrote:
> This patch set introduces two freq_table helper macros which
> can be used for iteration over cpufreq_frequency_table and
> makes the necessary changes to cpufreq core and drivers that
> use such an iteration procedure.
>
> The motivation was a usage of common procedure to iterate over
> cpufreq_frequency_table across all drivers and cpufreq core.
>
> This was tested on a x86_64 platform.
> Patches 4-17 compiled successfully but unfortunately I was not
> able to compile test patches 18-20.

Mostly okay, just some Nitpicks..

Please rearrange your patches this way:
- First patch just adds the wrappers
- Second one makes changes to drivers/cpufreq/, i.e. include all core
and drivers
  changes into a single patch here as the logs are exactly same.
- Then framework by framework, as we may need Acks/Reviews by them
  separately..

So, probably just 5-7 would do.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 00/20] Introduce new cpufreq helper macros
  2014-04-15  6:01 ` Viresh Kumar
@ 2014-04-15 11:03   ` Stratos Karafotis
  0 siblings, 0 replies; 3+ messages in thread
From: Stratos Karafotis @ 2014-04-15 11:03 UTC (permalink / raw)
  To: Viresh Kumar
  Cc: Rafael J. Wysocki, David S. Miller, Hans-Christian Egtvedt,
	Dirk Brandewie, Randy Dunlap, linux-doc,
	Linux Kernel Mailing List, cpufreq@vger.kernel.org,
	linux-pm@vger.kernel.org

On 15/04/2014 09:01 πμ, Viresh Kumar wrote:
> On 15 April 2014 02:37, Stratos Karafotis <stratosk@semaphore.gr> wrote:
>> This patch set introduces two freq_table helper macros which
>> can be used for iteration over cpufreq_frequency_table and
>> makes the necessary changes to cpufreq core and drivers that
>> use such an iteration procedure.
>>
>> The motivation was a usage of common procedure to iterate over
>> cpufreq_frequency_table across all drivers and cpufreq core.
>>
>> This was tested on a x86_64 platform.
>> Patches 4-17 compiled successfully but unfortunately I was not
>> able to compile test patches 18-20.
> 
> Mostly okay, just some Nitpicks..
> 
> Please rearrange your patches this way:
> - First patch just adds the wrappers
> - Second one makes changes to drivers/cpufreq/, i.e. include all core
> and drivers
>   changes into a single patch here as the logs are exactly same.
> - Then framework by framework, as we may need Acks/Reviews by them
>   separately..
> 
> So, probably just 5-7 would do.
> 


Thanks for your review and your corrections!
I will prepare and send the v2 according to your suggestions.

Stratos

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-15 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-14 21:07 [PATCH 00/20] Introduce new cpufreq helper macros Stratos Karafotis
2014-04-15  6:01 ` Viresh Kumar
2014-04-15 11:03   ` Stratos Karafotis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox