return DM_CALL(domain->dm_type, &freq);
}
-static unsigned int exynos_cpufreq_get(unsigned int cpu)
-{
- struct exynos_cpufreq_domain *domain = find_domain(cpu);
-
- if (!domain)
- return 0;
-
- return get_freq(domain);
-}
-
static int __exynos_cpufreq_suspend(struct exynos_cpufreq_domain *domain)
{
unsigned int freq;
.notifier_call = exynos_cpufreq_pm_notifier,
};
+unsigned int exynos_cpufreq_get(unsigned int cpu);
static struct cpufreq_driver exynos_driver = {
.name = "exynos_cpufreq",
.flags = CPUFREQ_STICKY | CPUFREQ_HAVE_GOVERNOR_PER_POLICY,
}
EXPORT_SYMBOL(exynos_cpufreq_get_max_freq);
-bool exynos_cpufreq_allow_change_max(unsigned int cpu, unsigned long max)
+unsigned int exynos_cpufreq_get(unsigned int cpu)
{
struct exynos_cpufreq_domain *domain = find_domain(cpu);
- bool allow;
- mutex_lock(&domain->lock);
- allow = domain->old <= max;
- mutex_unlock(&domain->lock);
+ if (!domain)
+ return 0;
- return allow;
+ return get_freq(domain);
}
/*********************************************************************