mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-14 17:53:39 +00:00
cpufreq: acpi-cpufreq: use cpufreq_table_validate_and_show()
Lets use cpufreq_table_validate_and_show() instead of calling cpufreq_frequency_table_cpuinfo() and cpufreq_frequency_table_get_attr(). 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
18f130ed75
commit
776b57be65
@ -837,7 +837,7 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
|
|||||||
data->freq_table[valid_states].frequency = CPUFREQ_TABLE_END;
|
data->freq_table[valid_states].frequency = CPUFREQ_TABLE_END;
|
||||||
perf->state = 0;
|
perf->state = 0;
|
||||||
|
|
||||||
result = cpufreq_frequency_table_cpuinfo(policy, data->freq_table);
|
result = cpufreq_table_validate_and_show(policy, data->freq_table);
|
||||||
if (result)
|
if (result)
|
||||||
goto err_freqfree;
|
goto err_freqfree;
|
||||||
|
|
||||||
@ -868,8 +868,6 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
|
|||||||
(u32) perf->states[i].power,
|
(u32) perf->states[i].power,
|
||||||
(u32) perf->states[i].transition_latency);
|
(u32) perf->states[i].transition_latency);
|
||||||
|
|
||||||
cpufreq_frequency_table_get_attr(data->freq_table, policy->cpu);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* the first call to ->target() should result in us actually
|
* the first call to ->target() should result in us actually
|
||||||
* writing something to the appropriate registers.
|
* writing something to the appropriate registers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user