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

Commit af2cfd60 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

msm: mdss: check for fb node refcount before calling null commit



Add a frame buffer reference count check before calling
null commit to release the free list pipes. This avoids
unnecessary flickering on screen if a process tries to open
and close the fb node without performing any operation.

Change-Id: I96b824edccf27f0ddb796c420ef1feb49f65ddea
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent d3e85426
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1517,8 +1517,8 @@ static int __mdss_mdp_overlay_release_all(struct msm_fb_data_type *mfd,
		}
	}

	if (cnt == 0 && !list_empty(&mdp5_data->pipes_cleanup)) {
		pr_debug("overlay release on fb%d called without commit!",
	if (!mfd->ref_cnt && !list_empty(&mdp5_data->pipes_cleanup)) {
		pr_debug("fb%d:: free pipes present in cleanup list",
			mfd->index);
		cnt++;
	}