thermal: extend the cooling device API to include power information
authorJavi Merino <javi.merino@arm.com>
Thu, 26 Feb 2015 19:00:28 +0000 (19:00 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:52 +0000 (21:27 -0700)
commit35b11d2e3a66279a477e36cefb2603806295b8ce
tree36d287c5dd3aa876e0909408fe8a691b0fd189de
parente33df1d2f3a0141cd79e770f31999ba0dd7ebfa8
thermal: extend the cooling device API to include power information

Add three optional callbacks to the cooling device interface to allow
them to express power.  In addition to the callbacks, add helpers to
identify cooling devices that implement the power cooling device API.

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: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal_core.c
include/linux/thermal.h