Message ID | 20181017134159.9656-3-m.szyprowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F1AE01057 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 17 Oct 2018 13:43:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB88829B18 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 17 Oct 2018 13:43:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9A0F2925C; Wed, 17 Oct 2018 13:43:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A17C62925C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 17 Oct 2018 13:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bYLYo3yh9xO+jsNYtbZ8S9X8KoaVpq6dFO3Xh4jwa/k=; b=hB5ba3GWUv2dCC43Kf5WKAkrq4 rU7jLork1ZYFSf3HcfaZLPn3nwMaYYGT+xjYMceOyR11MqsxS9+smDFtKxdf1SNin2RDh+RL8M/P7 oWolJVtSvT3PS7zqh+NDLFxlO3Bh5YfabH5vLSmMp048IRU5CC/SrBl6qE//mYgmjGheL80sNkabp +d8hHURXETBQR8HGci0hXnr83Tt4Kb8PweMp54xnJbGUCv/ePkT61YQPM5MqRMe1cS/KP8r6UwxS2 05bckpDW5OO7gB3Bvg00fjFdXEPrsx3pXxVdfv3sLpdLRKV0jrAnW9MrHVFlYah7VxJyB5hS1f7aK W2cIZXOA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCm6v-0005wt-S8; Wed, 17 Oct 2018 13:43:41 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCm5b-0005I1-54 for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 13:42:24 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181017134207euoutp0129c077156823e2c56f9087c500c86609~eaSRa75CD1247812478euoutp01C; Wed, 17 Oct 2018 13:42:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181017134207euoutp0129c077156823e2c56f9087c500c86609~eaSRa75CD1247812478euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539783727; bh=23R/J6B8yoCfPOWlxldxP5D7mXL7n7ZMaMuWjzEhIWQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=vK4GJoe0lqjIm5ziF9DFt545bus3f0k0FiWc9s8fZmceiC/LW1OUsEfvcnVQ5wbeG u0KJjuUuDPtStaxCSylPMvAOFlO1vslhgpLrpTP0I3sO5UUKjYw9e9JARhjaDVVnei 9qQiclf/0/BZumD7TMlfpwyYi4bFAuwWcs9cNwd8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181017134206eucas1p225968760428d7ad78a8ca89943294b73~eaSQ2Fg2T1242212422eucas1p23; Wed, 17 Oct 2018 13:42:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id CC.4E.04441.E2C37CB5; Wed, 17 Oct 2018 14:42:06 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181017134206eucas1p1caf7cdec20ec620a5bf52fb9e060a7de~eaSQFvfjE1608716087eucas1p1Y; Wed, 17 Oct 2018 13:42:06 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-90-5bc73c2e1115 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3D.12.04128.D2C37CB5; Wed, 17 Oct 2018 14:42:06 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGQ001A0WQ1IZ80@eusync4.samsung.com>; Wed, 17 Oct 2018 14:42:05 +0100 (BST) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/6] clocksource: exynos_mct: Fix error path in timer resources initialization Date: Wed, 17 Oct 2018 15:41:55 +0200 Message-id: <20181017134159.9656-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181017134159.9656-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H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m+aymzx 8uMJFgdejzXz1jB6bFrVyeZx59oeNo93586xe2xeUu/Rt2UVo8fnTXIB7FFcNimpOZllqUX6 dglcGT83XGQv+MpVcffELqYGxrmcXYycHBICJhKPN51g7GLk4hASWMIosXv9TCiniUmis6uT DaSKTcBQouttF5gtIpAtMX9vNzuIzSywhFni5n0HEFtYIFmi4/9/ZhCbRUBVou/0IxYQm1fA RuLtpOVMENvkJVZvOABUw8HBKWArsba/CiQsBFTy8vNcpgmMPAsYGVYxiqSWFuem5xYb6RUn 5haX5qXrJefnbmIEhuG2Yz+37GDsehd8iFGAg1GJh3eH2LFoIdbEsuLK3EOMEhzMSiK8VYrH o4V4UxIrq1KL8uOLSnNSiw8xSnOwKInznjeojBISSE8sSc1OTS1ILYLJMnFwSjUwRu7svsDa 9/BUyfs402WVf3bb9wcxv1R+smcZv4a8i9/MS4JWE/Pfv33drz2jwe5VeI6UtbZ/6z7VhGgL ZmfPNxUdL8OSVk/Z98+x4Vl/UdEbcZuo5Z/WTM1+OvXEx74vB9bM2f7cvVdz7jkOtxtP4q+I 7Px7Tfruhw7uL60Kzvn1Z28wMkV9UGIpzkg01GIuKk4EADtcOmQ/AgAA X-CMS-MailID: 20181017134206eucas1p1caf7cdec20ec620a5bf52fb9e060a7de X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181017134206eucas1p1caf7cdec20ec620a5bf52fb9e060a7de References: <20181017134159.9656-1-m.szyprowski@samsung.com> <CGME20181017134206eucas1p1caf7cdec20ec620a5bf52fb9e060a7de@eucas1p1.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_064219_385317_EEF13799 X-CRM114-Status: GOOD ( 15.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Marc Zyngier <marc.zyngier@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Daniel Lezcano <daniel.lezcano@linaro.org>, Will Deacon <will.deacon@arm.com>, Krzysztof Kozlowski <krzk@kernel.org>, Inki Dae <inki.dae@samsung.com>, Chanwoo Choi <cw00.choi@samsung.com>, Thomas Gleixner <tglx@linutronix.de>, Marek Szyprowski <m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[v3,1/6] clocksource: exynos_mct: Remove dead code
|
expand
|
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index ef18bbf8d20c..49413900b24c 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -561,7 +561,19 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * return 0; out_irq: - free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + if (mct_int_type == MCT_INT_PPI) { + free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + } else { + for_each_possible_cpu(cpu) { + struct mct_clock_event_device *pcpu_mevt = + per_cpu_ptr(&percpu_mct_tick, cpu); + + if (pcpu_mevt->evt.irq != -1) { + free_irq(pcpu_mevt->evt.irq, pcpu_mevt); + pcpu_mevt->evt.irq = -1; + } + } + } return err; }