diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-01 08:57:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-02 09:26:32 -0400 |
commit | 8a00627a187dca212c43a511852f06dd2c94b9aa (patch) | |
tree | 134d4da06ec62a673bc8dc0668ac2aa4689f484f /drivers/cpufreq | |
parent | e9f51837c97d199dfa06ef448797c584755837a8 (diff) |
cpufreq: drivers: don't check range of target freq in .target()
Cpufreq core checks the range of target_freq before calling driver->target() and
so we don't need to do it again.
Remove it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/dbx500-cpufreq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 7192a6df94c0..15ed367139a6 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c | |||
@@ -37,12 +37,6 @@ static int dbx500_cpufreq_target(struct cpufreq_policy *policy, | |||
37 | unsigned int idx; | 37 | unsigned int idx; |
38 | int ret; | 38 | int ret; |
39 | 39 | ||
40 | /* scale the target frequency to one of the extremes supported */ | ||
41 | if (target_freq < policy->cpuinfo.min_freq) | ||
42 | target_freq = policy->cpuinfo.min_freq; | ||
43 | if (target_freq > policy->cpuinfo.max_freq) | ||
44 | target_freq = policy->cpuinfo.max_freq; | ||
45 | |||
46 | /* Lookup the next frequency */ | 40 | /* Lookup the next frequency */ |
47 | if (cpufreq_frequency_table_target(policy, freq_table, target_freq, | 41 | if (cpufreq_frequency_table_target(policy, freq_table, target_freq, |
48 | relation, &idx)) | 42 | relation, &idx)) |