<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/include/linux/cpu_cooling.h, branch v4.1.37</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.1.37</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.1.37'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2014-12-17T13:00:04Z</updated>
<entry>
<title>thermal: cpu_cooling: return ERR_PTR() for !CPU_THERMAL or !THERMAL_OF</title>
<updated>2014-12-17T13:00:04Z</updated>
<author>
<name>Javi Merino</name>
<email>javi.merino@arm.com</email>
</author>
<published>2014-12-17T11:11:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2'/>
<id>urn:sha1:503ccc3fec4a56cdcfedc507cd1ea0d85e1fbfa2</id>
<content type='text'>
The documentation of of_cpufreq_cooling_register() and
cpufreq_cooling_register() say that they return ERR_PTR() on error.
Accordingly, callers only check for IS_ERR().  Therefore, make them
return ERR_PTR(-ENOSYS) as is customary in the kernel when config
options are missing.

Cc: Zhang Rui &lt;rui.zhang@intel.com&gt;
Cc: Eduardo Valentin &lt;edubezval@gmail.com&gt;
Signed-off-by: Javi Merino &lt;javi.merino@arm.com&gt;
Signed-off-by: Eduardo Valentin &lt;edubezval@gmail.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu_cooling: introduce of_cpufreq_cooling_register</title>
<updated>2013-12-04T13:33:34Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2013-09-12T23:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=39d99cff76bf2992fd6dd4b1fc62da139e62e90c'/>
<id>urn:sha1:39d99cff76bf2992fd6dd4b1fc62da139e62e90c</id>
<content type='text'>
This patch introduces an API to register cpufreq cooling device
based on device tree node.

The registration via device tree node differs from normal
registration due to the fact that it is needed to fill
the device_node structure in order to be able to match
the cooling devices with trip points.

Cc: Zhang Rui &lt;rui.zhang@intel.com&gt;
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu_cooling: fix stub function</title>
<updated>2013-07-08T14:13:40Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2013-07-05T15:40:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e8d39240d635ed9bcaddbec898b1c9f063c5dbb2'/>
<id>urn:sha1:e8d39240d635ed9bcaddbec898b1c9f063c5dbb2</id>
<content type='text'>
The function stub for cpufreq_cooling_get_level introduced
in 57df81069 "Thermal: exynos: fix cooling state translation"
is not syntactically correct C and needs to be fixed to avoid
this error:

In file included from drivers/thermal/db8500_thermal.c:20:0:
 include/linux/cpu_cooling.h: In function 'cpufreq_cooling_get_level':
include/linux/cpu_cooling.h:57:1:
 error: parameter name omitted  unsigned long cpufreq_cooling_get_level(unsigned int, unsigned int)  ^
 include/linux/cpu_cooling.h:57:1: error: parameter name omitted

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Cc: Zhang Rui &lt;rui.zhang@intel.com&gt;
Cc: Amit Daniel kachhap &lt;amit.daniel@samsung.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu_cooling: improve line breaking</title>
<updated>2013-04-27T01:25:59Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2013-04-17T17:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d44ada516277f5d58b9bda2ea0a2c9503b316bbf'/>
<id>urn:sha1:d44ada516277f5d58b9bda2ea0a2c9503b316bbf</id>
<content type='text'>
To improve code readiness, change the way the lines
are broken in this file.

Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu_cooling: remove unused symbols on cpu_cooling.h</title>
<updated>2013-04-24T16:34:45Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2013-04-17T17:12:22Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e44dec77be9e032ff9c2f95f17f7df3a55b58f60'/>
<id>urn:sha1:e44dec77be9e032ff9c2f95f17f7df3a55b58f60</id>
<content type='text'>
Remove defines that are not in used.

Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Acked-by: Amit Daniel Kachhap &lt;amit.daniel@samsung.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu_cooling: add needed header for cpu_cooling.h</title>
<updated>2013-04-24T16:34:44Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2013-04-24T15:10:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=198f38f7fb2d0956cc3394655d03cdb7054b0dcd'/>
<id>urn:sha1:198f38f7fb2d0956cc3394655d03cdb7054b0dcd</id>
<content type='text'>
Update header list for cpu_cooling.h. Missing definition of cpumask.

Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Acked-by: Amit Daniel Kachhap &lt;amit.daniel@samsung.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
</content>
</entry>
<entry>
<title>Thermal: build cpu_cooling code into thermal_sys module</title>
<updated>2013-04-14T15:28:49Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2013-03-26T15:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=bbf7fc88c78f7317e2cdcf77e974c8a9a8312641'/>
<id>urn:sha1:bbf7fc88c78f7317e2cdcf77e974c8a9a8312641</id>
<content type='text'>
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Acked-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Acked-by: Durgadoss R &lt;durgadoss.r@intel.com&gt;
</content>
</entry>
<entry>
<title>Thermal: exynos: fix cooling state translation</title>
<updated>2013-03-26T06:33:50Z</updated>
<author>
<name>Zhang Rui</name>
<email>rui.zhang@intel.com</email>
</author>
<published>2013-02-08T06:52:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=57df8106932b57427df1eaaa13871857f75b1194'/>
<id>urn:sha1:57df8106932b57427df1eaaa13871857f75b1194</id>
<content type='text'>
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
Tested-by: Amit Daniel kachhap &lt;amit.daniel@samsung.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu cooling: allow module builds</title>
<updated>2012-11-22T07:59:52Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2012-11-14T15:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4ba115b1e1ab6b717e08e0f4e766a1d16853d217'/>
<id>urn:sha1:4ba115b1e1ab6b717e08e0f4e766a1d16853d217</id>
<content type='text'>
As thermal drivers can be built as modules and also
the thermal framework itself, building cpu cooling
only as built-in can cause linking errors. For instance:
* Generic Thermal sysfs driver
*
Generic Thermal sysfs driver (THERMAL) [M/n/y/?] m
  generic cpu cooling support (CPU_THERMAL) [N/y/?] (NEW) y

with the following drive:
CONFIG_OMAP_BANDGAP=m

generates:
ERROR: "cpufreq_cooling_unregister" [drivers/staging/omap-thermal/omap-thermal.ko] undefined!
ERROR: "cpufreq_cooling_register" [drivers/staging/omap-thermal/omap-thermal.ko] undefined!

This patch changes cpu cooling driver to allow it
to be built as module.

Reported-by: Enric Balletbo i Serra &lt;eballetbo@gmail.com&gt;
Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Reviewed-by: Durgadoss R &lt;durgadoss.r@intel.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
</content>
</entry>
<entry>
<title>thermal: cpu cooling: use const parameter while registering</title>
<updated>2012-11-22T07:59:47Z</updated>
<author>
<name>Eduardo Valentin</name>
<email>eduardo.valentin@ti.com</email>
</author>
<published>2012-11-12T15:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3778ff5c709899a29cefe4b3077a926d0e1e9785'/>
<id>urn:sha1:3778ff5c709899a29cefe4b3077a926d0e1e9785</id>
<content type='text'>
There are predefined cpu_masks that are const data structures.
This patch changes the cpu cooling register function so that
those const cpu_masks can be used, without compilation warnings.

include/linux/cpumask.h

 * The following particular system cpumasks and operations manage
 * possible, present, active and online cpus.
 *
 *     cpu_possible_mask- has bit 'cpu' set iff cpu is populatable
 *     cpu_present_mask - has bit 'cpu' set iff cpu is populated
 *     cpu_online_mask  - has bit 'cpu' set iff cpu available to scheduler
 *     cpu_active_mask  - has bit 'cpu' set iff cpu available to migration
 *

Signed-off-by: Eduardo Valentin &lt;eduardo.valentin@ti.com&gt;
Signed-off-by: Zhang Rui &lt;rui.zhang@intel.com&gt;
</content>
</entry>
</feed>
