mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 19:16:13 +07:00
cpufreq: s3cx4xx: call cpufreq_frequency_table_get_attr()
This exposes frequency table of driver to cpufreq core and is required for core to guess what the index for a target frequency is, when it calls cpufreq_frequency_table_target(). And so this driver needs to expose it. Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
6a77a1e642
commit
5c40e052bb
@ -386,8 +386,10 @@ static int s3c_cpufreq_init(struct cpufreq_policy *policy)
|
|||||||
/* feed the latency information from the cpu driver */
|
/* feed the latency information from the cpu driver */
|
||||||
policy->cpuinfo.transition_latency = cpu_cur.info->latency;
|
policy->cpuinfo.transition_latency = cpu_cur.info->latency;
|
||||||
|
|
||||||
if (ftab)
|
if (ftab) {
|
||||||
cpufreq_frequency_table_cpuinfo(policy, ftab);
|
cpufreq_frequency_table_cpuinfo(policy, ftab);
|
||||||
|
cpufreq_frequency_table_get_attr(ftab, policy->cpu);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -257,6 +257,9 @@ static int s3c64xx_cpufreq_driver_init(struct cpufreq_policy *policy)
|
|||||||
ret);
|
ret);
|
||||||
regulator_put(vddarm);
|
regulator_put(vddarm);
|
||||||
clk_put(armclk);
|
clk_put(armclk);
|
||||||
|
} else {
|
||||||
|
cpufreq_frequency_table_get_attr(s3c64xx_freq_table,
|
||||||
|
policy->cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user