From b281238bfaf3bca160e3cf4ec7b1b83954c3cf6a Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Tue, 26 Jul 2016 15:56:32 +0900 Subject: [PATCH] [COMMON] thermal: cpu_cooling: Get parameter for PI control Change-Id: I45db38764afbdfc39c0fee67b7ba5ba0185b456c Signed-off-by: Soomin Kim --- drivers/thermal/cpu_cooling.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 796ab1ca3ea5..04eb62a83f62 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -39,6 +39,12 @@ #include #include +#if defined(CONFIG_SOC_EXYNOS8895) && defined(CONFIG_SOC_EMULATOR8895) +#include +#elif defined(CONFIG_SOC_EXYNOS8895) && !defined(CONFIG_SOC_EMULATOR8895) +#include +#endif + /* * Cooling state <-> CPUFreq frequency * @@ -239,8 +245,8 @@ static int update_freq_table(struct cpufreq_cooling_device *cpufreq_cdev, static int build_static_power_table(struct cpufreq_cooling_device *cpufreq_cdev) { int i, j; - int ids = cal_asv_get_ids_info(0); - int asv_group = cal_asv_get_grp(0, 0); + int ids = cal_asv_get_ids_info(ACPM_DVFS_CPUCL0); + int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL0); void *gen_block; struct ect_gen_param_table *volt_temp_param, *asv_param; -- 2.20.1