diff options
author | 2014-12-04 09:41:59 +0530 | |
---|---|---|
committer | 2014-12-08 12:09:52 -0400 | |
commit | 7adb635b3cd790e4e0d7e9d0b3dd30574ae36596 (patch) | |
tree | b8671125e393090c978db30039f259b0f7282c1a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | thermal: cpu_cooling: do error handling at the bottom in __cpufreq_cooling_register() (diff) | |
download | linux-dev-7adb635b3cd790e4e0d7e9d0b3dd30574ae36596.tar.xz linux-dev-7adb635b3cd790e4e0d7e9d0b3dd30574ae36596.zip |
thermal: cpu_cooling: initialize 'cpufreq_val' on registration
There is no point checking for validity of 'cpufreq_val' from
cpufreq_thermal_notifier() every time the routine is called. Its guaranteed to
be 0 on the first call but will be valid otherwise.
Lets update it once while the device registers.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions