On 01-06-16, 07:23, Viresh Kumar wrote:
Most of the callers of cpufreq_frequency_get_table() already have the pointer to a valid 'policy' structure and they don't really need to go through the per-cpu variable first and then a check to validate the frequency, in order to find the freq-table for the policy.
Directly use the policy->freq_table field instead.
Signed-off-by: Viresh Kumar viresh.kumar@linaro.org
V2: Instead of adding a new routine, use policy->freq_table directly as there already are a lot of users who are doing it directly anyway.
Discard this one as well. More cleanup is possible, will send it again.