cpufreq: imx6q: Find max freq from frequency table itself
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Feb 2018 05:08:44 +0000 (10:38 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 20 Mar 2018 11:07:51 +0000 (12:07 +0100)
commit8d768cdcf0f517c643690aeca8101a928a6c36c8
treed3d995d0e68ee6f58fb41d0e15a5ab0d80d498c5
parent3478b24c5e6fd4f27616674ea94dba8e28fbc7f7
cpufreq: imx6q: Find max freq from frequency table itself

This is a preparatory commit to make policy->suspend_freq independent of
validation of the cpufreq table, as a later commit would update
cpufreq_generic_init() to not validate the cpufreq table any longer.

The driver already assumes the order in which the frequency table is
sorted and we can get the max frequency easily.

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