cpufreq: governors: Remove duplicate check of target freq in supported range
authorStratos Karafotis <stratosk@semaphore.gr>
Mon, 26 Aug 2013 18:37:28 +0000 (21:37 +0300)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 26 Aug 2014 20:06:52 +0000 (13:06 -0700)
commita720e6784a4560cdffa010045fbb710ca69776e3
tree33c6658ad0703ad5d722b3e3bafbb6dcb6911677
parent0c03522935c4d4a25262a4eac8058b0b587b9e4e
cpufreq: governors: Remove duplicate check of target freq in supported range

Function __cpufreq_driver_target() checks if target_freq is within
policy->min and policy->max range. generic_powersave_bias_target() also
checks if target_freq is valid via a cpufreq_frequency_table_target()
call. So, drop the unnecessary duplicate check in *_check_cpu().

Bug 1359622

Change-Id: I2057504a85cc773f98497285cf9e62e5a15c09ea
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 934dac1ea072bd8adff8d6a6abba561731e093cf)
Reviewed-on: http://git-master/r/482371
Tested-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_ondemand.c