commit | 7adb635b3cd790e4e0d7e9d0b3dd30574ae36596 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Thu Dec 04 09:41:59 2014 +0530 |
committer | Eduardo Valentin <edubezval@gmail.com> | Mon Dec 08 12:09:52 2014 -0400 |
tree | b8671125e393090c978db30039f259b0f7282c1a | |
parent | 730abe064b6f8860302b75a689ceed059c08e0b1 [diff] |
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>