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 /arch/arm/mach-davinci | |
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 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/cpufreq.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/cpufreq.c b/arch/arm/mach-davinci/cpufreq.c index 55eb8703043d..8fb0c2ac227e 100644 --- a/arch/arm/mach-davinci/cpufreq.c +++ b/arch/arm/mach-davinci/cpufreq.c | |||
@@ -79,15 +79,6 @@ static int davinci_target(struct cpufreq_policy *policy, | |||
79 | struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; | 79 | struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; |
80 | struct clk *armclk = cpufreq.armclk; | 80 | struct clk *armclk = cpufreq.armclk; |
81 | 81 | ||
82 | /* | ||
83 | * Ensure desired rate is within allowed range. Some govenors | ||
84 | * (ondemand) will just pass target_freq=0 to get the minimum. | ||
85 | */ | ||
86 | if (target_freq < policy->cpuinfo.min_freq) | ||
87 | target_freq = policy->cpuinfo.min_freq; | ||
88 | if (target_freq > policy->cpuinfo.max_freq) | ||
89 | target_freq = policy->cpuinfo.max_freq; | ||
90 | |||
91 | freqs.old = davinci_getspeed(0); | 82 | freqs.old = davinci_getspeed(0); |
92 | freqs.new = clk_round_rate(armclk, target_freq * 1000) / 1000; | 83 | freqs.new = clk_round_rate(armclk, target_freq * 1000) / 1000; |
93 | 84 | ||