From: Hyeonseong Gil Date: Tue, 25 Jul 2017 08:06:05 +0000 (+0900) Subject: [COMMON] samsung: exynos-dm: compare min/max freq X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b5cf83584b1a29100cba38d0612c30553187443;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] samsung: exynos-dm: compare min/max freq Change-Id: Idf37bbeebf01c7fac9d104a37a1d5f6d0d6e0c38 Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/soc/samsung/exynos-dm.c b/drivers/soc/samsung/exynos-dm.c index 40feefeb8249..e7e2e57861a4 100644 --- a/drivers/soc/samsung/exynos-dm.c +++ b/drivers/soc/samsung/exynos-dm.c @@ -664,6 +664,8 @@ int policy_update_call_to_DM(enum exynos_dm_type dm_type, u32 min_freq, u32 max_ mutex_lock(&exynos_dm->lock); do_gettimeofday(&before); + min_freq = min(min_freq, max_freq); + dm = &exynos_dm->dm_data[dm_type]; if ((dm->policy_min_freq == min_freq) && (dm->policy_max_freq == max_freq)) goto out;