Skip to content
Snippets Groups Projects
Commit 34e573e4 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 0dd558b5
Branches
No related tags found
No related merge requests found
......@@ -203,15 +203,15 @@ static int cppc_cpufreq_set_target(struct cpufreq_policy *policy,
desired_perf = cppc_cpufreq_khz_to_perf(cpu, target_freq);
/* 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;
cpu->ctrls.desired_perf = desired_perf;
cpu->perf_ctrls.desired_perf = desired_perf;
freqs.old = policy->cur;
freqs.new = target_freq;
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);
if (ret)
......@@ -233,9 +233,9 @@ static void cppc_cpufreq_stop_cpu(struct cpufreq_policy *policy)
struct cppc_cpudata *cpu = all_cpu_data[cpu_num];
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)
pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",
cpu->perf_caps.lowest_perf, cpu_num, ret);
......@@ -346,9 +346,9 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy)
/* Set policy->cur to max now. The governors will adjust later. */
policy->cur = cppc_cpufreq_perf_to_khz(cpu,
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)
pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",
cpu->perf_caps.highest_perf, cpu_num, ret);
......@@ -383,7 +383,7 @@ static int cppc_get_rate_from_fbctrs(struct cppc_cpudata *cpu,
delivered_perf = (reference_perf * delta_delivered) /
delta_reference;
else
delivered_perf = cpu->ctrls.desired_perf;
delivered_perf = cpu->perf_ctrls.desired_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