summaryrefslogtreecommitdiff
path: root/lib/xz/xz_dec_syms.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-04 09:42:06 +0530
committerEduardo Valentin <edubezval@gmail.com>2014-12-08 14:11:02 -0400
commitf6859014c7e7cc0e7688525741fc3a0e7aee63be (patch)
treec06b75df0db0d8eb7e0356a9a6147a5d2f4f1a32 /lib/xz/xz_dec_syms.c
parentb9f8b4160310e4459c08b54b918cd83da141f7f0 (diff)
thermal: cpu_cooling: Store frequencies in descending order
CPUFreq framework *doesn't* guarantee that frequencies present in cpufreq table will be in ascending or descending order. But cpu_cooling somehow assumes that. Probably because most of current users are creating this list from DT, which is done with the help of OPP layer. And OPP layer creates the list in ascending order of frequencies. But cpu_cooling can be used for other platforms too, which don't have frequencies arranged in any order. This patch tries to fix this issue by creating another list of valid frequencies in descending order. Care is also taken to throw warnings for duplicate entries. Later patches would use it to simplify code. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'lib/xz/xz_dec_syms.c')
0 files changed, 0 insertions, 0 deletions