From 3b5cf83584b1a29100cba38d0612c30553187443 Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Tue, 25 Jul 2017 17:06:05 +0900 Subject: [PATCH] [COMMON] samsung: exynos-dm: compare min/max freq Change-Id: Idf37bbeebf01c7fac9d104a37a1d5f6d0d6e0c38 Signed-off-by: Hyeonseong Gil --- drivers/soc/samsung/exynos-dm.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.20.1