Skip to content
Snippets Groups Projects
Commit 86c20ce8 authored by Luis Gerhorst's avatar Luis Gerhorst
Browse files

Revert "cpufreq: Fix rename of cppc_cpudata field perf_ctrls to ctrls"

This reverts commit 5798a05c.
parent 33a55e58
Branches
Tags
No related merge requests found
...@@ -199,15 +199,15 @@ static int cppc_cpufreq_set_target(struct cpufreq_policy *policy, ...@@ -199,15 +199,15 @@ static int cppc_cpufreq_set_target(struct cpufreq_policy *policy,
desired_perf = cppc_cpufreq_khz_to_perf(cpu, target_freq); desired_perf = cppc_cpufreq_khz_to_perf(cpu, target_freq);
/* Return if it is exactly the same perf */ /* Return if it is exactly the same perf */
if (desired_perf == cpu->ctrls.desired_perf) if (desired_perf == cpu->perf_ctrls.desired_perf)
return ret; return ret;
cpu->ctrls.desired_perf = desired_perf; cpu->perf_ctrls.desired_perf = desired_perf;
freqs.old = policy->cur; freqs.old = policy->cur;
freqs.new = target_freq; freqs.new = target_freq;
cpufreq_freq_transition_begin(policy, &freqs); cpufreq_freq_transition_begin(policy, &freqs);
ret = cppc_set_reg(cpu->cpu, &cpu->ctrls, DESIRED_PERF); ret = cppc_set_reg(cpu->cpu, &cpu->perf_ctrls, DESIRED_PERF);
cpufreq_freq_transition_end(policy, &freqs, ret != 0); cpufreq_freq_transition_end(policy, &freqs, ret != 0);
if (ret) if (ret)
...@@ -229,9 +229,9 @@ static void cppc_cpufreq_stop_cpu(struct cpufreq_policy *policy) ...@@ -229,9 +229,9 @@ static void cppc_cpufreq_stop_cpu(struct cpufreq_policy *policy)
struct cppc_cpudata *cpu = all_cpu_data[cpu_num]; struct cppc_cpudata *cpu = all_cpu_data[cpu_num];
int ret; int ret;
cpu->ctrls.desired_perf = cpu->perf_caps.lowest_perf; cpu->perf_ctrls.desired_perf = cpu->perf_caps.lowest_perf;
ret = cppc_set_reg(cpu_num, &cpu->ctrls, DESIRED_PERF); ret = cppc_set_reg(cpu_num, &cpu->perf_ctrls, DESIRED_PERF);
if (ret) if (ret)
pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n", pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",
cpu->perf_caps.lowest_perf, cpu_num, ret); cpu->perf_caps.lowest_perf, cpu_num, ret);
...@@ -342,9 +342,9 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) ...@@ -342,9 +342,9 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy)
/* Set policy->cur to max now. The governors will adjust later. */ /* Set policy->cur to max now. The governors will adjust later. */
policy->cur = cppc_cpufreq_perf_to_khz(cpu, policy->cur = cppc_cpufreq_perf_to_khz(cpu,
cpu->perf_caps.highest_perf); cpu->perf_caps.highest_perf);
cpu->ctrls.desired_perf = cpu->perf_caps.highest_perf; cpu->perf_ctrls.desired_perf = cpu->perf_caps.highest_perf;
ret = cppc_set_reg(cpu_num, &cpu->ctrls, DESIRED_PERF); ret = cppc_set_reg(cpu_num, &cpu->perf_ctrls, DESIRED_PERF);
if (ret) if (ret)
pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n", pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",
cpu->perf_caps.highest_perf, cpu_num, ret); cpu->perf_caps.highest_perf, cpu_num, ret);
...@@ -379,7 +379,7 @@ static int cppc_get_rate_from_fbctrs(struct cppc_cpudata *cpu, ...@@ -379,7 +379,7 @@ static int cppc_get_rate_from_fbctrs(struct cppc_cpudata *cpu,
delivered_perf = (reference_perf * delta_delivered) / delivered_perf = (reference_perf * delta_delivered) /
delta_reference; delta_reference;
else else
delivered_perf = cpu->ctrls.desired_perf; delivered_perf = cpu->perf_ctrls.desired_perf;
return cppc_cpufreq_perf_to_khz(cpu, delivered_perf); return cppc_cpufreq_perf_to_khz(cpu, delivered_perf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment