thermal: cpu_cooling: Use cpufreq_dev->freq_table for finding level/freq
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:12:07 +0000 (09:42 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 18:11:54 +0000 (14:11 -0400)
get_property() was an over complicated beast with BUGs. It used to believe that
cpufreq table is present in ascending or descending order, which might not
always be true.

Previous patch has created another freq table in descending order for us and we
better use it now. With that get_property() simply goes away and another helper
get_level() comes in.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

No differences found