cpufreq: ACPI: Remove freq_table from acpi_cpufreq_data
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 7 Apr 2016 08:36:57 +0000 (14:06 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:54:31 +0000 (01:54 +0200)
commit8cee1eed8e78143aa2ed60308fb88e2d6fa46205
treedd202e8f95356a6176452fce23ae9812b60e126f
parent9b55f55af8f017fec053c7eb0675241d057936da
cpufreq: ACPI: Remove freq_table from acpi_cpufreq_data

The freq-table is stored in struct cpufreq_policy also and there is
absolutely no need of keeping a copy of its reference in struct
acpi_cpufreq_data. Drop it.

Also policy->freq_table can't be NULL in the target() callback, remove
the useless check as well.

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