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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 28 Aug 2013 20:03:02 +0000 (22:03 +0200)
commit934dac1ea072bd8adff8d6a6abba561731e093cf
treeee7b24fe58e60f1bd04c250f0d278d32115ee320
parent3617f2ca6d0eba48114308532945a7f1577816a4
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().

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>
drivers/cpufreq/cpufreq_conservative.c
drivers/cpufreq/cpufreq_ondemand.c