linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 0/2] cpufreq: Sort policy->freq_table
@ 2016-06-07 10:25 Viresh Kumar
  2016-06-07 10:25 ` [PATCH V4 1/2] cpufreq: Handle sorted frequency tables more efficiently Viresh Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Viresh Kumar @ 2016-06-07 10:25 UTC (permalink / raw)
  To: Rafael Wysocki
  Cc: linaro-kernel, linux-pm, linux-kernel, steve.muckle, Viresh Kumar

Hi Rafael,

I have spent some more time on this stuff and finally came out with a
very simple solution. I hope you will like it more than the previous
versions.

Instead of trying to sort the freq-table passed by the drivers, which
was complicated and would have broken some drivers for sure, this patch
just checks if the freq-table is sorted or not.

If it is sorted, then we just use a different set of helpers for it. The
table can be sorted in both ascending and descending orders now and
helpers are present for both the cases.

All the patches are pushed here for testing in case anyone wants to try:
git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git cpufreq/sorted-freq-table

V3->V4:
- Written from scratch really, completely different approach.

Thanks

Viresh Kumar (2):
  cpufreq: Handle sorted frequency tables more efficiently
  cpufreq: Reuse new freq-table helpers

 drivers/cpufreq/acpi-cpufreq.c         |  14 +-
 drivers/cpufreq/amd_freq_sensitivity.c |   4 +-
 drivers/cpufreq/cpufreq_ondemand.c     |   6 +-
 drivers/cpufreq/freq_table.c           |  67 +++++++-
 drivers/cpufreq/powernv-cpufreq.c      |   3 +-
 drivers/cpufreq/s5pv210-cpufreq.c      |   3 +-
 include/linux/cpufreq.h                | 284 ++++++++++++++++++++++++++++++++-
 7 files changed, 353 insertions(+), 28 deletions(-)

-- 
2.7.1.410.g6faf27b

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

end of thread, other threads:[~2016-06-27  1:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 10:25 [PATCH V4 0/2] cpufreq: Sort policy->freq_table Viresh Kumar
2016-06-07 10:25 ` [PATCH V4 1/2] cpufreq: Handle sorted frequency tables more efficiently Viresh Kumar
2016-06-23  0:28   ` Rafael J. Wysocki
2016-06-26 10:38     ` Viresh Kumar
2016-06-27  0:28       ` Rafael J. Wysocki
2016-06-27  1:56         ` Viresh Kumar
2016-06-07 10:25 ` [PATCH V4 2/2] cpufreq: Reuse new freq-table helpers Viresh Kumar
2016-06-08  0:19 ` [PATCH V4 0/2] cpufreq: Sort policy->freq_table Rafael J. Wysocki
2016-06-16 16:17   ` Viresh Kumar
2016-06-17  0:56     ` Rafael J. Wysocki

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).