From: Jaejoon Yoo Date: Fri, 19 Aug 2016 06:55:56 +0000 (+0900) Subject: [COMMON] exynos: DVFS Manager: Fix policy_min_freq set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66d31f1e49e00fe83bf54ce1deb06526ed4b840a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] exynos: DVFS Manager: Fix policy_min_freq set While device is booting, policy_min_freq value(INT) is set incorrectly. I expected that policy_min_freq(INT) value should be changed to boot frequency after devfreq init call. But policy_min_freq(INT) was not changed to boot frequency after devfreq init call rarely. This patch is for fixing this problem from DVFS Manager. Change-Id: I82348d678bb31f093a322a92b508860a531f0cf2 Signed-off-by: Jaejoon Yoo --- diff --git a/drivers/soc/samsung/exynos-dm.c b/drivers/soc/samsung/exynos-dm.c index 0ae125fd3979..97573337ce6d 100644 --- a/drivers/soc/samsung/exynos-dm.c +++ b/drivers/soc/samsung/exynos-dm.c @@ -632,7 +632,7 @@ int policy_update_call_to_DM(enum exynos_dm_type dm_type, u32 min_freq, u32 max_ do_gettimeofday(&before); dm = &exynos_dm->dm_data[dm_type]; - if (dm->policy_max_freq == max_freq) + if ((dm->policy_min_freq == min_freq)&&(dm->policy_max_freq == max_freq)) goto out; update_policy_min_max_freq(dm, min_freq, max_freq);