Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0afd9d2f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcom-cpufreq: Fix frequency table registration"

parents fd7ab9da 36223a22
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -180,13 +180,10 @@ static int msm_cpufreq_init(struct cpufreq_policy *policy)
	int cur_freq;
	int index;
	int ret = 0;
	struct cpufreq_frequency_table *table;
	struct cpufreq_frequency_table *table = freq_table;
	struct cpufreq_work_struct *cpu_work = NULL;
	int cpu;

	table = cpufreq_frequency_get_table(policy->cpu);
	if (table == NULL)
		return -ENODEV;
	/*
	 * In some SoC, some cores are clocked by same source, and their
	 * frequencies can not be changed independently. Find all other
@@ -233,6 +230,7 @@ static int msm_cpufreq_init(struct cpufreq_policy *policy)
	pr_debug("cpufreq: cpu%d init at %d switching to %d\n",
			policy->cpu, cur_freq, table[index].frequency);
	policy->cur = table[index].frequency;
	cpufreq_frequency_table_get_attr(table, policy->cpu);

	return 0;
}
@@ -442,10 +440,6 @@ static int __init msm_cpufreq_probe(struct platform_device *pdev)
	if (ret)
		return ret;

	for_each_possible_cpu(cpu) {
		cpufreq_frequency_table_get_attr(freq_table, cpu);
	}

	/* Use per-policy governor tunable for some targets */
	if (of_property_read_bool(dev->of_node, "qcom,governor-per-policy"))
		msm_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY;