thermal: Add devfreq cooling
authorØrjan Eide <orjan.eide@arm.com>
Thu, 10 Sep 2015 17:09:30 +0000 (18:09 +0100)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 7 Jul 2016 05:32:08 +0000 (14:32 +0900)
commita4c00ddbd86a6e9a20f12e99aa7081bf2e817b29
tree2ccee5dce0b7988a228350317f91a5db235480dc
parentaefe9b36561b58736cd09b417a0be2458cccc9ad
thermal: Add devfreq cooling

Add a generic thermal cooling device for devfreq, that is similar to
cpu_cooling.

The device must use devfreq.  In order to use the power extension of the
cooling device, it must have registered its OPPs using the OPP library.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Ørjan Eide <orjan.eide@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
[jy0922.shim: apply from mainline with fixup of fuzz]
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/devfreq_cooling.c [new file with mode: 0644]
include/linux/devfreq_cooling.h [new file with mode: 0644]