From patchwork Wed May 22 04:04:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2600001 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 985A9DF215 for ; Wed, 22 May 2013 04:04:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4885DE6343 for ; Tue, 21 May 2013 21:04:34 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E2C3E6333 for ; Tue, 21 May 2013 21:04:20 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MN6004XVLYCSWE0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 22 May 2013 13:04:18 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 5D.CB.11618.2C34C915; Wed, 22 May 2013 13:04:18 +0900 (KST) X-AuditID: cbfee691-b7fef6d000002d62-18-519c43c2e629 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A1.10.16109.2C34C915; Wed, 22 May 2013 13:04:18 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.53]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MN600GCCLZ6UQ10@mmp2.samsung.com>; Wed, 22 May 2013 13:04:18 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: use drm_send_vblank_event() helper Date: Wed, 22 May 2013 13:04:16 +0900 Message-id: <1369195456-14697-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.5.4 In-reply-to: <1349725849-22433-6-git-send-email-rob.clark@linaro.org> References: <1349725849-22433-6-git-send-email-rob.clark@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsWyRsSkWPeQ85xAg/tX1C16z51ksrjy9T2b xaT7E1gsNhzvZnRg8dj+7QGrx/3u40wefVtWMXocv7GdKYAlissmJTUnsyy1SN8ugSujbf57 5oLVXBVP1vxlaWB8xNHFyMEhIWAi8ea/WBcjJ5ApJnHh3nq2LkYuDiGBpYwSPxfuYoVImEjc efeRGSIxnVHix+35TBBOF5NEd98SJpAqNgFViYkr7rOB2CICphIdk5aygNjMAtYSjw8+B6sR FrCXWPP1EDOIzQJU3zjtJjPIFbwCLhK/pydDLFOQ+HVkFdhiTgFXiSebt4K1CgGVdKyZyQKy V0KgmV1i7+N/TBBzBCS+TT7EAvGNrMSmA8wQcyQlDq64wTKBUXgBI8MqRtHUguSC4qT0IlO9 4sTc4tK8dL3k/NxNjMDwPf3v2cQdjPcPWB9iTAYaN5FZSjQ5Hxj+eSXxhsZmRhamJqbGRuaW ZqQJK4nzqrdYBwoJpCeWpGanphakFsUXleakFh9iZOLglGpgdEmaN9NvX8rsJ++ZO7SNNdmv +xZPFNR5axV7UPHMqp89517f0LwaFFdssCe6X1kh40rEghh3rnuHJki5sJkK/PaOnqX86Vuc 5+4T6tNvHAwR+HPI7eys8KrSmPbJTscjth0+3rT0WfmZi1vPnxRV4538zP/8Lb6KZLvU7edy TuecaWWf/1JAQomlOCPRUIu5qDgRAG22hPJ1AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t9jQd1DznMCDeb/krfoPXeSyeLK1/ds FpPuT2Cx2HC8m9GBxWP7twesHve7jzN59G1Zxehx/MZ2pgCWqAZGm4zUxJTUIoXUvOT8lMy8 dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygpUoKZYk5pUChgMTiYiV9O0wTQkPc dC1gGiN0fUOC4HqMDNBAwhrGjLb575kLVnNVPFnzl6WB8RFHFyMnh4SAicSddx+ZIWwxiQv3 1rN1MXJxCAlMZ5T4cXs+E4TTxSTR3beECaSKTUBVYuKK+2wgtoiAqUTHpKUsIDazgLXE44PP wWqEBewl1nw9BDaVBai+cdpNIJuDg1fAReL39GSIZQoSv46sYgWxOQVcJZ5s3grWKgRU0rFm JssERt4FjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYLj45nUDsaVDRaHGAU4GJV4eB/U zg4UYk0sK67MPcQowcGsJMK7Sm1OoBBvSmJlVWpRfnxRaU5q8SHGZKCjJjJLiSbnA2M3ryTe 0NjEzMjSyNzQwsjYnDRhJXHeA63WgUIC6YklqdmpqQWpRTBbmDg4pRoYCz9b/j55uM7EjEHx 2q0DO/oyPzFJXXp2SNu7bcKnmcuLN73zZvs/h3/z0SNxLzacSd228fMOha2aHItCcrIOzqnT /eCc7F18XFTd+5KD5r/rice+MGxIO7tpRQPn26pjV+csmP012c4nzuk13xeX70udT789EXDi 9VXu/t0yP4v33+2wKVkuu1yJpTgj0VCLuag4EQAcCBR10wIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: Rob Clark X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Rob Clark Rebased. Signed-off-by: Rob Clark Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index e8894bc..1e7825a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c @@ -398,7 +398,6 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc) { struct exynos_drm_private *dev_priv = dev->dev_private; struct drm_pending_vblank_event *e, *t; - struct timeval now; unsigned long flags; DRM_DEBUG_KMS("%s\n", __FILE__); @@ -411,14 +410,9 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc) if (crtc != e->pipe) continue; - do_gettimeofday(&now); - e->event.sequence = 0; - e->event.tv_sec = now.tv_sec; - e->event.tv_usec = now.tv_usec; - - list_move_tail(&e->base.link, &e->base.file_priv->event_list); - wake_up_interruptible(&e->base.file_priv->event_wait); drm_vblank_put(dev, crtc); + list_del(&e->base.link); + drm_send_vblank_event(dev, -1, e); } spin_unlock_irqrestore(&dev->event_lock, flags);