@@ -505,15 +505,6 @@
return policy->freq_table[idx].frequency;
}
-static unsigned int clamp_and_resolve_freq(struct cpufreq_policy *policy,
- unsigned int target_freq,
- unsigned int relation)
-{
- target_freq = clamp_val(target_freq, policy->min, policy->max);
-
- return __resolve_freq(policy, target_freq, relation);
-}
-
/**
* cpufreq_driver_resolve_freq - Map a target frequency to a driver-supported
* one.
@@ -2361,7 +2352,8 @@
if (cpufreq_disabled())
return -ENODEV;
- target_freq = clamp_and_resolve_freq(policy, target_freq, relation);
+ target_freq = clamp_val(target_freq, policy->min, policy->max);
+ target_freq = __resolve_freq(policy, target_freq, relation);
pr_debug("target for CPU %u: %u kHz, relation %u, requested %u kHz\n",
policy->cpu, target_freq, relation, old_target_freq);