[COMMON] thermal: cpu_cooling: add static power table
authorHyeonseong Gil <hs.gil@samsung.com>
Mon, 11 Jul 2016 06:54:19 +0000 (15:54 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:09:35 +0000 (17:09 +0900)
commit98222f8f2204746681a58bb50efd77f1b6fb5d68
tree18f60301e111a2a8aa9448fa627bc434d88ad526
parentc7e3357cc27c8ba22a077afbaf20c155291ad7c6
[COMMON] thermal: cpu_cooling: add static power table

If cpu_cooling is registered for power_allocator governor,
build static power table with coefficient from ECT
and look up it in accordance with temperature and voltage.

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- allowed_cpus -> policy->related_cpus

Change-Id: I516c9f5796cda6b4e64c9448a6565086443369a8
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/cpu_cooling.c
include/linux/cpu_cooling.h