From patchwork Wed May 22 06:59:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2600391 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 51A6640077 for ; Wed, 22 May 2013 06:59:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A482E6289 for ; Tue, 21 May 2013 23:59:30 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id BCA4BE5E05 for ; Tue, 21 May 2013 23:59:17 -0700 (PDT) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MN6002X8U2S09B0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 22 May 2013 15:59:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.114]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 3E.D0.03969.4CC6C915; Wed, 22 May 2013 15:59:16 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-89-519c6cc487b7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 62.C2.17674.4CC6C915; Wed, 22 May 2013 15:59:16 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.53]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MN600DZOU2R70J0@mmp1.samsung.com>; Wed, 22 May 2013 15:59:16 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH RESEND] drm/exynos: use drm_send_vblank_event() helper Date: Wed, 22 May 2013 15:59:15 +0900 Message-id: <1369205955-2776-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.5.4 In-reply-to: <1369195456-14697-1-git-send-email-inki.dae@samsung.com> References: <1369195456-14697-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsWyRsSkSPdIzpxAg/c/VCx6z51ksrjy9T2b xaT7E1gsNhzvZnRg8dj+7QGrx/3u40wefVtWMXocv7GdKYAlissmJTUnsyy1SN8ugSuj8eE5 1oLvnBXvpq5kbGDczNHFyMkhIWAisfb8Z0YIW0ziwr31bF2MXBxCAksZJd4cnMQIU7Ro/3kW iMQiRolzj28yQzhdTBLXzj4Aq2ITUJWYuOI+G4gtImAq0TFpKQuIzSxgLfH44HMmEFtYwE3i 8vanzCA2C1D9ousXwOp5BZwlLs47xgyxTUHi15FVrCA2p4CrxM3Ja8BqhARcJDb1PABbLCHQ zC5x9tIcJohBAhLfJh8CWsYBlJCV2HQAao6kxMEVN1gmMAovYGRYxSiaWpBcUJyUXmSsV5yY W1yal66XnJ+7iREYwqf/PevfwXj3gPUhxmSgcROZpUST84ExkFcSb2hsZmRhamJqbGRuaUaa sJI4r1qLdaCQQHpiSWp2ampBalF8UWlOavEhRiYOTqkGRkEba5ljojrX7tpNPHJHw8dn5v7T c4pdGu9nhqnM/f36begju1JPgfuvso58nLbtgPPJf3kf57X4K8rG/v5aEl6tUr+5ujhityDf Vt4p82fE7LgXFBGi/TNSKpEl9cjlPxfFm218XqUvnLOO4fJ05j/PDT0uHatYwOKcHqx9QmHl oWuR3own/iuxFGckGmoxFxUnAgCJtxq9dwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsVy+t9jAd0jOXMCDT7skLXoPXeSyeLK1/ds FpPuT2Cx2HC8m9GBxWP7twesHve7jzN59G1Zxehx/MZ2pgCWqAZGm4zUxJTUIoXUvOT8lMy8 dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zBygpUoKZYk5pUChgMTiYiV9O0wTQkPc dC1gGiN0fUOC4HqMDNBAwhrGjMaH51gLvnNWvJu6krGBcTNHFyMnh4SAicSi/edZIGwxiQv3 1rN1MXJxCAksYpQ49/gmM4TTxSRx7ewDRpAqNgFViYkr7rOB2CICphIdk5aCdTMLWEs8Pvic CcQWFnCTuLz9KTOIzQJUv+j6BbB6XgFniYvzjjFDbFOQ+HVkFSuIzSngKnFz8hqwGiEBF4lN PQ+YJzDyLmBkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHCHPpHcwrmqwOMQowMGoxMP7 oHZ2oBBrYllxZe4hRgkOZiURXoWgOYFCvCmJlVWpRfnxRaU5qcWHGJOBrprILCWanA+M3ryS eENjEzMjSyNzQwsjY3PShJXEeQ+2WgcKCaQnlqRmp6YWpBbBbGHi4JRqYMyyY5m8yuSWzR3O /zFHwu3TGjaWvHsQL28W/O9XavlUOX/Vd8IsM7J1pafJsyU3ptWLt68q6oy9Y8Jq1Wnj83Rm es/9l/v4Ui/zi635dMni7LKnzUdnib+MDH/w1Pj27+tOWX0bE1wYHy3zkX50/37qErdmm93H OjeG/S51vX32jc33JV9erlFiKc5INNRiLipOBAB4+xo21AIAAA== 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..c6b2dbc 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,13 +410,8 @@ 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); + list_del(&e->base.link); + drm_send_vblank_event(dev, -1, e); drm_vblank_put(dev, crtc); }