disp: msm: sde: restart idle power collapse timeout every kickoff
Restart the timeline for the idle power collapse delayed work timer for every resource control kickoff instead of only during a power state change. This will prevent entering mode2 at unexpected times during active scanouts. Change-Id: I001157ff7e6b6246e26d537e30d8617cab9cb463 Signed-off-by: Steve Cohen <cohens@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
6947c549ba
commit
f95824d0ec
@@ -1644,9 +1644,10 @@ static int _sde_encoder_rc_kickoff(struct drm_encoder *drm_enc,
|
|||||||
SDE_ENC_RC_STATE_ON, SDE_EVTLOG_FUNC_CASE1);
|
SDE_ENC_RC_STATE_ON, SDE_EVTLOG_FUNC_CASE1);
|
||||||
sde_enc->rc_state = SDE_ENC_RC_STATE_ON;
|
sde_enc->rc_state = SDE_ENC_RC_STATE_ON;
|
||||||
|
|
||||||
|
end:
|
||||||
/* restart delayed off work, if required */
|
/* restart delayed off work, if required */
|
||||||
_sde_encoder_rc_restart_delayed(sde_enc, sw_event);
|
_sde_encoder_rc_restart_delayed(sde_enc, sw_event);
|
||||||
end:
|
|
||||||
mutex_unlock(&sde_enc->rc_lock);
|
mutex_unlock(&sde_enc->rc_lock);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user