ANDROID: thermal: cpu_cooling: Migrate to using the EM framework
The newly introduced Energy Model framework manages power cost tables in
a generic way. Moreover, it supports a wide variety of models since the
tables can come from DT, firmware, etc. On the other hand, the
cpu_cooling subsystem manages its own power cost tables using only DT
information.
In order to avoid the duplication of data in the kernel, and in order to
enable IPA with EMs comming from more than just DT, remove the private
tables from cpu_cooling.c and migrate it to using the centralized EM
framework.
The case where the thermal subsystem is used without an Energy Model
(cpufreq_cooling_ops) is handled by looking at CPUFreq's frequency table
which is already a dependency for cpu_cooling.c anyway.
Signed-off-by:
Quentin Perret <quentin.perret@arm.com>
Change-Id: I064e4b0e56d1c52b82a4dc800a1fa90456429911
Loading
Please register or sign in to comment