From: Soomin Kim Date: Thu, 28 Jul 2016 07:41:16 +0000 (+0900) Subject: [COMMON] thermal: gpu_cooling: Get parameter for PI control X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0590e4db83b835340443e38648484163f8ef397d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: gpu_cooling: Get parameter for PI control Change-Id: If591611e788369ee944e3be105e62fe1660c113f Signed-off-by: Soomin Kim --- 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;