Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfee13f5 authored by Javi Merino's avatar Javi Merino Committed by Kevin Hilman
Browse files

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: default avatarKapileshwar Singh <kapileshwar.singh@arm.com>
Signed-off-by: default avatarPunit Agrawal <punit.agrawal@arm.com>
Signed-off-by: default avatarJavi Merino <javi.merino@arm.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit c36cf07176316fbe6a4bdbc23afcb0cbf7822bf2)
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent 6bdc3a1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment