From patchwork Fri Jan 8 08:45:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 7983331 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9427F9F859 for ; Fri, 8 Jan 2016 08:46:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE634201CD for ; Fri, 8 Jan 2016 08:46:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7873A20107 for ; Fri, 8 Jan 2016 08:46:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754299AbcAHIqG (ORCPT ); Fri, 8 Jan 2016 03:46:06 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:56474 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754124AbcAHIqF (ORCPT ); Fri, 8 Jan 2016 03:46:05 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O0M01WLWLOR3C30@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 08 Jan 2016 17:46:03 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.113]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id CB.BB.04972.B477F865; Fri, 8 Jan 2016 17:46:03 +0900 (KST) X-AuditID: cbfee68e-f793c6d00000136c-21-568f774b1663 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id D0.EC.13906.A477F865; Fri, 8 Jan 2016 17:46:02 +0900 (KST) Received: from localhost.localdomain ([10.113.62.206]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O0M00KE6LOQSU80@mmp2.samsung.com>; Fri, 08 Jan 2016 17:46:02 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, Inki Dae Subject: [PATCH] drm/exynos: do not free pended event at postclose callback Date: Fri, 08 Jan 2016 17:45:59 +0900 Message-id: <1452242760-20298-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCLMWRmVeSWpSXmKPExsWyRsSkUNe7vD/M4M0qFosrX9+zWUy6P4HF Ysb5fUwOzB73u48zefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfGjsZV7AXLOCvuHb3G2MD4 ir2LkZNDQsBEYt2cFYwQtpjEhXvr2boYuTiEBFYwSqyd+oEFpujThh9gDUICsxglrnaqQhT9 YJRY8+QNWBGbgKrExBX32UBsEQFlib8TV4FNZRZwk1h8ejlYjbCAt8Tzvi1ANRwcLCD1PWUg YV4BF4lJD5pYIXbJSZw8NpkVZL6EwHU2ieP/rzGBJFgEBCS+TT7EAtIrISArsekAM0S9pMTB FTdYJjAKLmBkWMUomlqQXFCclF5kpFecmFtcmpeul5yfu4kRGHin/z3r28F484D1IUYBDkYl Hl6OHX1hQqyJZcWVuYcYTYE2TGSWEk3OB4Z3Xkm8obGZkYWpiamxkbmlmZI4b4LUz2AhgfTE ktTs1NSC1KL4otKc1OJDjEwcnFINjFNn2kTNtRQ3jdKqcVJsyTtyLnr6jqV+/j84pWucmNkz siVyNR7erv12r445y/MaR/US24o/DhNrc746TTFovba/xfSYtdusba9mf+YUEv3Q4f49MjE8 7bzUq6TsnN74FRX1ndfD5Jaz8B4sndBj9fNQdNScP0llpUZrf61p9bz76MPakpgWJZbijERD Leai4kQA8JrCaDcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrILMWRmVeSWpSXmKPExsVy+t9jQV2v8v4wg13NthZXvr5ns5h0fwKL xYzz+5gcmD3udx9n8ujbsorR4/MmuQDmqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwND XUNLC3MlhbzE3FRbJRefAF23zBygTUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqM DNBAwhrGjB2Nq9gLlnFW3Dt6jbGB8RV7FyMnh4SAicSnDT+gbDGJC/fWs4HYQgKzGCWudqp2 MXIB2T8YJdY8ecMCkmATUJWYuOI+WJGIgLLE34mrGEFsZgE3icWnl4PVCAt4Szzv2wJUw8HB AlLfUwYS5hVwkZj0oIkVYpecxMljk1knMHIvYGRYxSiRWpBcUJyUnmuYl1quV5yYW1yal66X nJ+7iREc3M+kdjAe3OV+iFGAg1GJhzdhV1+YEGtiWXFl7iFGCQ5mJRHeRcX9YUK8KYmVValF +fFFpTmpxYcYTYH2T2SWEk3OB0ZeXkm8obGJmZGlkbmhhZGxuZI4b+2lyDAhgfTEktTs1NSC 1CKYPiYOTqkGxur+tIyrtrqtz1MdvAPXie8+dLk/9az5zr7Q9y+rb5T/Ln9x7n3oyr3Fixvl 61SLql2PiB9duXnJgmLvk1vW7lp8s/J71/w7y1jC1Zfo84YrpV+YbZL0/t3Rictn7gvin7K1 edGq9AUPsx0Ymv27Jv1deLW5zdn+Vn9+SegE/axFK1htX+ZN3q/EUpyRaKjFXFScCAC7ZIw1 hAIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These events will be freed by drm_events_release of DRM core so it doesn't need to free these events in SoC specific driver. This patch removes relevant codes from Exynos DRM driver. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 57c0e7d..59041d7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -340,20 +340,9 @@ static void exynos_drm_preclose(struct drm_device *dev, static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file) { - struct drm_pending_event *e, *et; - unsigned long flags; - if (!file->driver_priv) return; - spin_lock_irqsave(&dev->event_lock, flags); - /* Release all events handled by page flip handler but not freed. */ - list_for_each_entry_safe(e, et, &file->event_list, link) { - list_del(&e->link); - e->destroy(e); - } - spin_unlock_irqrestore(&dev->event_lock, flags); - kfree(file->driver_priv); file->driver_priv = NULL; }