cpufreq: Optimize cpufreq_frequency_table_verify()
commit77db50c4eb1991d6e88254390ec368e1d23a8fa5
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 2 Oct 2013 08:43:15 +0000 (2 14:13 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:22 +0000 (16 00:50 +0200)
treeeb0b2c9a8436be57c25422dcb65609702210a3f0
parent27a862e98341226a50835f29aa26ffa528215ecc
cpufreq: Optimize cpufreq_frequency_table_verify()

cpufreq_frequency_table_verify() is rewritten here to make it more logical
and efficient.
 - merge multiple lines for variable declarations together.
 - quit early if any frequency between min/max is found.
 - don't call cpufreq_verify_within_limits() in case any valid freq is
   found as it is of no use.
 - rename the count variable as found and change its type to boolean.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/freq_table.c