projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98d522f
)
thermal: cpu_cooling: no need to set cpufreq_state to zero
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:51 +0000
(09:41 +0530)
committer
Eduardo Valentin
<edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:55 +0000
(12:08 -0400)
Its already zero, we allocated cpufreq_dev with kzalloc.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/cpu_cooling.c
b/drivers/thermal/cpu_cooling.c
index
5378561
..
30e2ecb
100644
(file)
--- a/
drivers/thermal/cpu_cooling.c
+++ b/
drivers/thermal/cpu_cooling.c
@@
-499,7
+499,7
@@
__cpufreq_cooling_register(struct device_node *np,
return cool_dev;
}
cpufreq_dev->cool_dev = cool_dev;
- cpufreq_dev->cpufreq_state = 0;
+
mutex_lock(&cooling_cpufreq_lock);
/* Register the notifier for first cpufreq cooling device */