thermal: cpu_cooling: implement the power cooling device API
authorJavi Merino <javi.merino@arm.com>
Thu, 26 Feb 2015 19:00:29 +0000 (19:00 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:52 +0000 (21:27 -0700)
commitc36cf07176316fbe6a4bdbc23afcb0cbf7822bf2
tree5133c93bd1630c16507682d2500e0805d99f43d3
parent35b11d2e3a66279a477e36cefb2603806295b8ce
thermal: cpu_cooling: implement the power cooling device API

Add a basic power model to the cpu cooling device to implement the
power cooling device API.  The power model uses the current frequency,
current load and OPPs for the power calculations.  The cpus must have
registered their OPPs using the OPP library.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Documentation/thermal/cpu-cooling-api.txt
drivers/thermal/cpu_cooling.c
include/linux/cpu_cooling.h