diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 3322dc63b8fa86fbaddaafc2dd17d9e98effd66c..dcff2eb8ed51400e97e2b2cb2cf606f9b17a6988 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -204,15 +204,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) @@ -234,9 +234,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); @@ -354,9 +354,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); @@ -391,7 +391,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); }