Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1570011 > unrolled thread

[PATCH 02/14] drm/exynos: use atomic_dec_not_zero()

Started byFabian Frederick <fabf@skynet.be>
First post2017-01-30 19:50 +0100
Last post2017-01-30 19:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 02/14] drm/exynos: use atomic_dec_not_zero() Fabian Frederick <fabf@skynet.be> - 2017-01-30 19:50 +0100

#1570011 — [PATCH 02/14] drm/exynos: use atomic_dec_not_zero()

FromFabian Frederick <fabf@skynet.be>
Date2017-01-30 19:50 +0100
Subject[PATCH 02/14] drm/exynos: use atomic_dec_not_zero()
Message-ID<t5pbA-7p2-33@gated-at.bofh.it>
instead of atomic_add_unless(value, -1, 0)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 745cfbd..0e191b6 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -923,7 +923,7 @@ static void fimd_te_handler(struct exynos_drm_crtc *crtc)
 	 * If there is a page flip request, triggers and handles the page flip
 	 * event so that current fb can be updated into panel GRAM.
 	 */
-	if (atomic_add_unless(&ctx->win_updated, -1, 0))
+	if (atomic_dec_not_zero(&ctx->win_updated))
 		fimd_trigger(ctx->dev);
 
 out:
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web