提交 2a2a6bd1 编写于 作者: S Serge Schneider 提交者: Zheng Zengkai

drivers: thermal: step_wise: avoid throttling at hysteresis temperature after dropping below it

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------
Signed-off-by: NSerge Schneider <serge@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 c7ae2177
...@@ -155,7 +155,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) ...@@ -155,7 +155,7 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip)
*/ */
if (tz->temperature >= trip_temp || if (tz->temperature >= trip_temp ||
(tz->temperature >= hyst_temp && (tz->temperature >= hyst_temp &&
old_target != THERMAL_NO_TARGET)) { old_target == instance->upper)) {
throttle = true; throttle = true;
trace_thermal_zone_trip(tz, trip, trip_type); trace_thermal_zone_trip(tz, trip, trip_type);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册