All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Thermal: cpu cooling fix
@ 2013-02-06  4:30 Zhang Rui
  2013-02-06  4:30 ` [PATCH 2/5] Thermal: Introduce cpu cooling table Zhang Rui
  0 siblings, 1 reply; 7+ messages in thread
From: Zhang Rui @ 2013-02-06  4:30 UTC (permalink / raw)
  To: linux-pm; +Cc: amit.daniel, gu1, hongbo.zhang, Zhang Rui

the per_cpu cpufreq_frequency_table contains all the frequency entries
which are reported by platform code.
But this table is not clean enough because it may contain invalid,
duplicate entries, and it may be in either descending or asceding order.

converting between cpu frequency and cooling state using this table
in cpufreq cooling code is painful as each cooling state of
cpu cooling device must have a valid and unique frequency.

thus cpu cooling table is introduced in this patch set.
CPU cooling table is a table that
1. each entry represents a cpu cooling state,
   aka, a different cpu frequency.
2. no invalid entry in this table
3. no duplicate entry in this table
4. the frequency of all the entries are in descending order, aka,
   table[0] equals maximum frequency and cooling state 0.

And this is the table we are using inside cpufreq cooling generic code.

Besides, all the cpufreq cooling users, e.g. exynos, should touch
neither per_cpu cpufreq_frequency_table nor the cpu cooling table.
it should invoke cpufreq cooling API to do cooling_state/frequency
transition.

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] 7+ messages in thread

end of thread, other threads:[~2013-02-08 13:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CADGdYn6ehM36k1O3O6mXnHRJBy42N5iACnbOB+bwjPx+RAqQTw@mail.gmail.com>
2013-02-07  1:56 ` [PATCH 2/5] Thermal: Introduce cpu cooling table amit daniel kachhap
2013-02-07  2:53   ` Zhang Rui
2013-02-07 23:18     ` amit kachhap
2013-02-06  4:30 [PATCH 0/5] Thermal: cpu cooling fix Zhang Rui
2013-02-06  4:30 ` [PATCH 2/5] Thermal: Introduce cpu cooling table Zhang Rui
2013-02-07  9:36   ` Hongbo Zhang
2013-02-08  3:30     ` Zhang Rui
2013-02-08 13:09       ` Hongbo Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.