summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar2018-02-26 06:08:45 +0100
committerRafael J. Wysocki2018-03-20 12:07:51 +0100
commit92c99d159c38256e221ed8b50fd48953746a90e0 (patch)
tree915564432b6f5bd84d4e89be8884eff5f5296a44 /drivers/cpufreq/cpufreq.c
parentcpufreq: imx6q: Find max freq from frequency table itself (diff)
downloadkernel-qcow2-linux-92c99d159c38256e221ed8b50fd48953746a90e0.tar.gz
kernel-qcow2-linux-92c99d159c38256e221ed8b50fd48953746a90e0.tar.xz
kernel-qcow2-linux-92c99d159c38256e221ed8b50fd48953746a90e0.zip
cpufreq: Don't validate cpufreq table from cpufreq_generic_init()
The cpufreq table is already validated by the cpufreq core and none of the users of cpufreq_generic_init() have any dependency on it to validate the table as well. Don't validate the cpufreq table anymore from cpufreq_generic_init(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 239063fb6afc..075d18f6ba7a 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -178,14 +178,7 @@ int cpufreq_generic_init(struct cpufreq_policy *policy,
struct cpufreq_frequency_table *table,
unsigned int transition_latency)
{
- int ret;
-
- ret = cpufreq_table_validate_and_show(policy, table);
- if (ret) {
- pr_err("%s: invalid frequency table: %d\n", __func__, ret);
- return ret;
- }
-
+ policy->freq_table = table;
policy->cpuinfo.transition_latency = transition_latency;
/*