Commit c6c89ac
Thermal/step_wise: Fix that hysteresis takes no effect
Test command
nsh> cat /proc/thermal/cpu-thermal
Trips
/* Copy from drivers/thermal/thermal_dummy.c */
{.name = "cpu_crit", .temp = 90, .hyst = 5, .type = THERMAL_CRITICAL},
{.name = "cpu_alert1", .temp = 70, .hyst = 5, .type = THERMAL_HOT},
{.name = "cpu_alert0", .temp = 60, .hyst = 5, .type = THERMAL_NORMAL},
Without this patch
# Error occured when temperature jump to 69.
z:cpu-thermal t:67 t:1 h:16 l:0 c:fan0 s:0|(invalid)
z:cpu-thermal t:72 t:1 h:16 l:0 c:fan0 s:1|1
z:cpu-thermal t:69 t:1 h:16 l:0 c:fan0 s:0|0
z:cpu-thermal t:74 t:1 h:16 l:0 c:fan0 s:1|1
With this patch
z:cpu-thermal t:67 t:1 h:16 l:0 c:fan0 s:0|(invalid)
z:cpu-thermal t:72 t:1 h:16 l:0 c:fan0 s:1|1
z:cpu-thermal t:69 t:1 h:16 l:0 c:fan0 s:1|1
z:cpu-thermal t:74 t:1 h:16 l:0 c:fan0 s:2|2
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>1 parent 9899acf commit c6c89ac
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| |||
0 commit comments