diff options
author | 2013-05-28 06:22:32 +0000 | |
---|---|---|
committer | 2013-05-28 14:49:31 +0800 | |
commit | 24c7a381720843f17efb42de81f7e85aefd6f616 (patch) | |
tree | 6deb8d5f54bf300f2de7c5de76e8d8e2fb1bfded /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'trace-fixes-v3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (diff) | |
download | linux-dev-24c7a381720843f17efb42de81f7e85aefd6f616.tar.xz linux-dev-24c7a381720843f17efb42de81f7e85aefd6f616.zip |
thermal: cpu_cooling: fix 'descend' check in get_property()
The variable 'descend' is initialized as -1 in function get_property(),
and will never get any chance to be updated by the following code.
if (freq != CPUFREQ_ENTRY_INVALID && descend != -1)
descend = !!(freq > table[i].frequency);
This makes function get_property() return the wrong frequency for given
cooling level if the frequency table is sorted in ascending. Fix it
by correcting the 'descend' check in if-condition to 'descend == -1'.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions