From 78974174d6e1dc6992aa2f00af6d78ff7c34547d Mon Sep 17 00:00:00 2001 From: Eunseok Choi Date: Tue, 23 May 2017 02:45:02 +0900 Subject: [PATCH] [COMMON] thermal: cpu_cooling: modify ids of static power table Change-Id: I725217f8df11927fcede4be288fdf05af618aee3 Signed-off-by: Eunseok Choi --- drivers/thermal/cpu_cooling.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 5b780579acdb..59ac5c3f10ab 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -45,6 +45,8 @@ #include #elif defined(CONFIG_SOC_EXYNOS7872) #include +#elif defined(CONFIG_SOC_EXYNOS9810) +#include #endif /* @@ -247,8 +249,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 ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL0); - int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL0); + int ratio = cal_asv_get_ids_info(ACPM_DVFS_CPUCL1); + int asv_group = cal_asv_get_grp(ACPM_DVFS_CPUCL1); void *gen_block; struct ect_gen_param_table *volt_temp_param, *asv_param; int ratio_table[16] = { 0, 18, 22, 27, 33, 40, 49, 60, 73, 89, 108, 131, 159, 194, 232, 250}; @@ -265,8 +267,8 @@ static int build_static_power_table(struct cpufreq_cooling_device *cpufreq_cdev) return -EINVAL; } - volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_MNGS_VOLT_TEMP"); - asv_param = ect_gen_param_get_table(gen_block, "DTM_MNGS_ASV"); + volt_temp_param = ect_gen_param_get_table(gen_block, "DTM_BIG_VOLT_TEMP"); + asv_param = ect_gen_param_get_table(gen_block, "DTM_BIG_ASV"); if (volt_temp_param && asv_param) { cpufreq_cdev->var_volt_size = volt_temp_param->num_of_row - 1; -- 2.20.1