From ac7f713a5ff7e569cf57c04cb132c934a70cb806 Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Fri, 27 Apr 2018 15:29:48 +0900 Subject: [PATCH] cpufreq: acme: Add function to check max_constraints of boost domain. Change-Id: I956942e6ed1ea6e1da8ccd1f747d9cf503b95b2b Signed-off-by: Youngtae Lee --- drivers/cpufreq/exynos-acme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 22b5456d0837..28ded8d70f75 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -179,6 +179,8 @@ static int set_freq(struct exynos_cpufreq_domain *domain, if (domain->need_awake) disable_power_mode(cpumask_any(&domain->cpus), POWERMODE_TYPE_CLUSTER); + /* check target freq is available */ + emc_check_available_freq(&domain->cpus, target_freq); err = cal_dfs_set_rate(domain->cal_id, target_freq); if (err < 0) pr_err("failed to scale frequency of domain%d (%d -> %d)\n", -- 2.20.1