diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 245c65aa9a54713c1c94779f8dc08a3d6ba12253..81e9dff03c92592ceb4d4e62f150fb5ff3d4afff 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -199,15 +199,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) @@ -229,9 +229,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); @@ -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. */ 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); @@ -379,7 +379,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); }