diff options
author | Dave Martin <dave.martin@linaro.org> | 2012-11-23 12:41:34 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-04-29 09:43:51 +0100 |
commit | fa55a999a51295d95ac1bf7d416da59c266d1d87 (patch) | |
tree | d7b4ba5da3c65be5250da1e51d87db35e2d74881 /drivers | |
parent | 66756546bd6f86dfe11a1d69559c29b201e8bdf8 (diff) |
cpufreq: vexpress: Remove duplicate frequency bounds check
__cpufreq_driver_target() already validates the requested frequency
against the min and max bounds specified in the policy, so there is
to need to check it again.
This patch removes the bounds check from
vexpress_cpufreq_set_target().
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpufreq/vexpress_bL_cpufreq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpufreq/vexpress_bL_cpufreq.c b/drivers/cpufreq/vexpress_bL_cpufreq.c index 39825354b47..253d59f9635 100644 --- a/drivers/cpufreq/vexpress_bL_cpufreq.c +++ b/drivers/cpufreq/vexpress_bL_cpufreq.c @@ -74,12 +74,6 @@ static int vexpress_cpufreq_set_target(struct cpufreq_policy *policy, if (vexpress_spc_get_performance(cur_cluster, &freqs.old)) return -EIO; - /* Make sure that target_freq is within supported range */ - if (target_freq > policy->max) - target_freq = policy->max; - if (target_freq < policy->min) - target_freq = policy->min; - /* Determine valid target frequency using freq_table */ cpufreq_frequency_table_target(policy, freq_table[cur_cluster], target_freq, relation, &freq_tab_idx); |