mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 05:16:08 +07:00
drm/msm: dpu: Don't bother checking ->enabled in dpu_crtc_vblank
The drm_crtc_vblank_on/off calls in enable/disable guarantee that we won't call this function when crtc is not enabled. Changes in v2: - None Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
f7aafc8d53
commit
5c6277c1d2
@ -1189,9 +1189,7 @@ int dpu_crtc_vblank(struct drm_crtc *crtc, bool en)
|
||||
|
||||
mutex_lock(&dpu_crtc->crtc_lock);
|
||||
trace_dpu_crtc_vblank(DRMID(&dpu_crtc->base), en, dpu_crtc);
|
||||
if (dpu_crtc->enabled) {
|
||||
_dpu_crtc_vblank_enable_no_lock(dpu_crtc, en);
|
||||
}
|
||||
_dpu_crtc_vblank_enable_no_lock(dpu_crtc, en);
|
||||
dpu_crtc->vblank_requested = en;
|
||||
mutex_unlock(&dpu_crtc->crtc_lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user