From 0590e4db83b835340443e38648484163f8ef397d Mon Sep 17 00:00:00 2001 From: Soomin Kim Date: Thu, 28 Jul 2016 16:41:16 +0900 Subject: [PATCH] [COMMON] thermal: gpu_cooling: Get parameter for PI control Change-Id: If591611e788369ee944e3be105e62fe1660c113f Signed-off-by: Soomin Kim --- drivers/thermal/gpu_cooling.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/gpu_cooling.c b/drivers/thermal/gpu_cooling.c index 671aef464aa8..be042fb1b14c 100644 --- a/drivers/thermal/gpu_cooling.c +++ b/drivers/thermal/gpu_cooling.c @@ -33,6 +33,12 @@ #include #include +#if defined(CONFIG_SOC_EXYNOS8895) && defined(CONFIG_SOC_EMULATOR8895) +#include +#elif defined(CONFIG_SOC_EXYNOS8895) && !defined(CONFIG_SOC_EMULATOR8895) +#include +#endif + /** * struct power_table - frequency to power conversion * @frequency: frequency in KHz @@ -306,8 +312,8 @@ static int build_dyn_power_table(struct gpufreq_cooling_device *gpufreq_cdev, static int build_static_power_table(struct gpufreq_cooling_device *gpufreq_cdev) { int i, j; - int ids = cal_asv_get_ids_info(1); - int asv_group = cal_asv_get_grp(2, 0); + int ids = cal_asv_get_ids_info(ACPM_DVFS_G3D); + int asv_group = cal_asv_get_grp(ACPM_DVFS_G3D); void *gen_block; struct ect_gen_param_table *volt_temp_param, *asv_param; -- 2.20.1