Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04e8d77b authored by Viresh Kumar's avatar Viresh Kumar Committed by Kevin Hilman
Browse files

thermal: cpu_cooling: Use cpufreq_dev->freq_table for finding level/freq



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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit 4843c4a190495aec41c8a87365697e933dc88bc9)
Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parent e7cb5bfc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment