git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730abe0
)
thermal: cpu_cooling: initialize 'cpufreq_val' on registration
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:59 +0000
(09:41 +0530)
committer
Eduardo Valentin
<edubezval@gmail.com>
Mon, 8 Dec 2014 16:09:52 +0000
(12:09 -0400)
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>
No differences found