cpufreq: acme: Add function to check max_constraints of boost domain.
authorYoungtae Lee <yt0729.lee@samsung.com>
Fri, 27 Apr 2018 06:29:48 +0000 (15:29 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:10 +0000 (14:59 +0900)
Change-Id: I956942e6ed1ea6e1da8ccd1f747d9cf503b95b2b
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
drivers/cpufreq/exynos-acme.c

index 22b5456d08378706b89c76fb7f219a70dddf5c79..28ded8d70f75f1229793398022d37e0f21fd42f9 100644 (file)
@@ -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",