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

Commit 247adcfd authored by Sravanthi Kollukuduru's avatar Sravanthi Kollukuduru Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix to send idle time notification only when requested



Userspace can configure idle_time as zero when they want to
disable idle_time notifications. Currently, notification is received
on every commit till idle_time is reset to non-zero value.
Added a check to fix this.

Change-Id: Ifb4c224e2ee7bed246b975deb684a185ec702855
Signed-off-by: default avatarSravanthi Kollukuduru <skolluku@codeaurora.org>
parent 9c9a0530
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1710,7 +1710,7 @@ static int sde_encoder_resource_control(struct drm_encoder *drm_enc,
		else
			idle_timeout = sde_enc->idle_timeout;

		if (!autorefresh_enabled)
		if (!autorefresh_enabled && idle_timeout)
			kthread_queue_delayed_work(
				&disp_thread->worker,
				&sde_enc->delayed_off_work,