浏览代码

thermal: trip_point_temp_store() calls thermal_zone_device_update()

trip_point_temp_store() updates trip temperature. It should call
thermal_zone_device_update() immediately.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Kuninori Morimoto 9 年之前
父节点
当前提交
ad74e46cb3
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      drivers/thermal/thermal_core.c

+ 5 - 1
drivers/thermal/thermal_core.c

@@ -676,8 +676,12 @@ trip_point_temp_store(struct device *dev, struct device_attribute *attr,
 		return -EINVAL;
 
 	ret = tz->ops->set_trip_temp(tz, trip, temperature);
+	if (ret)
+		return ret;
 
-	return ret ? ret : count;
+	thermal_zone_device_update(tz);
+
+	return count;
 }
 
 static ssize_t