Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 800744bf authored by lan,Tianyu's avatar lan,Tianyu Committed by Zhang Rui
Browse files

Thermal: update thermal zone device after setting emul_temp



This patch is to update thermal zone device after setting emul_temp
in order to make governor work according to input temperature immediately.

Signed-off-by: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 7734e3ac
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -777,6 +777,9 @@ emul_temp_store(struct device *dev, struct device_attribute *attr,
		ret = tz->ops->set_emul_temp(tz, temperature);
	}

	if (!ret)
		thermal_zone_device_update(tz);

	return ret ? ret : count;
}
static DEVICE_ATTR(emul_temp, S_IWUSR, NULL, emul_temp_store);