cpufreq: eff: fix configuration
authorChoonghoon Park <choong.park@samsung.com>
Fri, 15 Jun 2018 00:26:53 +0000 (09:26 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:35 +0000 (14:59 +0900)
Fix typo PSTATE_EXYNOS_HAFM to CONFIG_PSTATE_EXYNOS_HAFM

Change-Id: I541dd9cf2f90a7fd6d2a15fa22dd7ec494e5e68c

drivers/cpufreq/exynos-ff.c

index 5d50d7d3696c4a32a630ead07a344a44099ef71c..b4c828f5e2c1271f5b46ef4abcdf9427c3a7b9f9 100644 (file)
@@ -36,7 +36,7 @@ static bool policy_need_filter(struct cpufreq_policy *policy)
        return cpumask_intersects(policy->cpus, &eff_driver->cpus);
 }
 
-#ifdef PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
 static bool check_filtering(unsigned int target_freq, unsigned int flag)
 {
        unsigned int cur_freq;
@@ -89,7 +89,7 @@ int __cpufreq_driver_target(struct cpufreq_policy *policy,
        if (policy_need_filter(policy)) {
                mutex_lock(&eff_driver->lock);
 
-#ifdef PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
                if (check_filtering(target_freq, flag))
                        goto out;
 
@@ -134,7 +134,7 @@ out:
 
 void cpufreq_policy_apply_limits(struct cpufreq_policy *policy)
 {
-#ifdef PSTATE_EXYNOS_HAFM_TB
+#ifdef CONFIG_PSTATE_EXYNOS_HAFM_TB
        if (policy_need_filter(policy)) {
                if (check_boost_freq_throttled(policy)) {
                        pr_debug("exynos-ff: wait for boost freq throttling completion\n");