Revert "ARM64: cpufreq_sched: implement event CPUFREQ_GOV_LIMIT for governor"
[firefly-linux-kernel-4.4.55.git] / kernel / sched / cpufreq_sched.c
index c608a9265d6ae35629691c180c74f01cbf4c8c5a..e1d208e101ed86ab6c835867a7cac9ed97b07d6c 100644 (file)
@@ -327,20 +327,6 @@ static int cpufreq_sched_stop(struct cpufreq_policy *policy)
        return 0;
 }
 
-static int cpufreq_sched_limits(struct cpufreq_policy *policy)
-{
-       if (policy->max < policy->cur)
-               __cpufreq_driver_target(policy,
-                                       policy->max,
-                                       CPUFREQ_RELATION_H);
-       else if (policy->min > policy->cur)
-               __cpufreq_driver_target(policy,
-                                       policy->min,
-                                       CPUFREQ_RELATION_L);
-
-       return 0;
-}
-
 static int cpufreq_sched_setup(struct cpufreq_policy *policy,
                               unsigned int event)
 {
@@ -354,7 +340,7 @@ static int cpufreq_sched_setup(struct cpufreq_policy *policy,
        case CPUFREQ_GOV_STOP:
                return cpufreq_sched_stop(policy);
        case CPUFREQ_GOV_LIMITS:
-               return cpufreq_sched_limits(policy);
+               break;
        }
        return 0;
 }