linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] Thermal: cpufreq cooling fix
@ 2013-02-08  7:12 Zhang Rui
  2013-02-08  7:12 ` [PATCH V2 1/2] Thermal: cpufreq cooling: fix parsing per_cpu cpufreq_frequency_table Zhang Rui
  2013-02-08  7:12 ` [PATCH V2 2/2] Thermal: exynos: fix cooling state translation Zhang Rui
  0 siblings, 2 replies; 4+ messages in thread
From: Zhang Rui @ 2013-02-08  7:12 UTC (permalink / raw)
  To: linux-pm; +Cc: amit.daniel, gu1, hongbo.zhang, Zhang Rui

cpufreq cooling uses different frequencies as different cooling states.

But the per_cpu cpufreq_frequency_table may contain duplicate,
invalid entries, and it may be in either ascending or descending order.
And currently, code for parsing the per_cpu cpufreq_frequency_table
is used in several places and inconsistent.

To fix this,
New code is introduce in Patch 1/2, which contains the logic
of parsing per_cpu cpufreq_frequency_table, and this piece of
code can be used to:
1. get the maximum cooling states
2. translate cpu frequency to cooling state
3. translate cooling state to cpu frequency

Patch 2/2 converts exynos_thermal driver to use the new code
introduced in Patch 1/2.

History:
V2: remove cpu cooling table to avoid extra memory allocation.

V1: introduce code to convert per_cpu cpufreq_frequency_table
    to clean cpu cooling table (no invalid entry,
    no duplicate entry, in descending order).

I just run build test here. It would be great that some of you
can test it on exynos.
any comments?

thanks,
rui

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <CADGdYn5=SdybVW7zJdaXBmfj40Y4inkwtHrjikaYOwVabUz4MA@mail.gmail.com>]

end of thread, other threads:[~2013-02-11  3:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08  7:12 [PATCH V2 0/2] Thermal: cpufreq cooling fix Zhang Rui
2013-02-08  7:12 ` [PATCH V2 1/2] Thermal: cpufreq cooling: fix parsing per_cpu cpufreq_frequency_table Zhang Rui
2013-02-08  7:12 ` [PATCH V2 2/2] Thermal: exynos: fix cooling state translation Zhang Rui
     [not found] <CADGdYn5=SdybVW7zJdaXBmfj40Y4inkwtHrjikaYOwVabUz4MA@mail.gmail.com>
2013-02-11  3:44 ` [PATCH V2 0/2] Thermal: cpufreq cooling fix amit daniel kachhap

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