Message ID | 20181017134159.9656-3-m.szyprowski@samsung.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp674706lji; Wed, 17 Oct 2018 06:42:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63V16nDhVMOl4Ryk8q3eOoYjer6xuDlRxr6SNxI/wZld1Dsi72onuafyCSwqXa89qcdAPgs X-Received: by 2002:a63:91c9:: with SMTP id l192-v6mr24899448pge.433.1539783776118; Wed, 17 Oct 2018 06:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539783776; cv=none; d=google.com; s=arc-20160816; b=svmLALh9+N/ymqdkutHpaYHuFjqS+gY11jtms4Km7xo580HnTDHAMwSgkRkxma+N07 XUS2+0/e3pOUWoS0s6yj6ne/HvBflQHgFviBd7Brnx4TbnQhpjyqAdxU8CW6uq9g5Fpa 9YNXH7yZbH4OyTFhvDvuT5926/T4mdZbDQ5B2AjLtg0GMAa/QPcwLYONFoP3boP1tjJ+ +fs9kcQNM/+vSw7Q1aNQqe1bQPKGqztKC67cmhugg0REiL5jxTBzvCKopZ4RySWg6jbz HcXa5zxiIU/IyLmT6e44uTrjLH/4uFnhO+7ntswlXYzyWgX4IMaVnQPR1j12keL42sOr IznQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=23R/J6B8yoCfPOWlxldxP5D7mXL7n7ZMaMuWjzEhIWQ=; b=U42YitYR+SEEkzrResbxWy1thmwGC6zms/tpbX9ZueoJ9/tW4f+/r4HTYSujHghFq9 BDZOohjJPK9hmwNpwskgjka/RTMF6FtuorpWdHUluej4zGd1nSEZzEoLXDhjMOinMzTo EZYU1q3BMpOgGQ2JrtJ9X4x5Uhvak/0A+ExxCCim8k0tki6tQwa2uC7tu2Rr+TTFYO7U c5iQrL9i9XxTpWem0gCtmeTFr5yQb+cpM6UCb49kWISAVGvrac6M8oqbbx3ujgZv994b aZA6DoLA5GpThv0Eqfs9BVDHQyC5aXrG2jr147IkpAttmOczRxvsx35Gcer2qIYk9uFV udOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vK4GJoe0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si7296708plb.292.2018.10.17.06.42.49; Wed, 17 Oct 2018 06:42:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vK4GJoe0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727591AbeJQViW (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Wed, 17 Oct 2018 17:38:22 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57629 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbeJQVhy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 Oct 2018 17:37:54 -0400 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 Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Will Deacon <will.deacon@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, Thomas Gleixner <tglx@linutronix.de>, Daniel Lezcano <daniel.lezcano@linaro.org>, Krzysztof Kozlowski <krzk@kernel.org>, Chanwoo Choi <cw00.choi@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Inki Dae <inki.dae@samsung.com> 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: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsWy7djP87p6NsejDV7fUrLYOGM9q8X7ZT2M Fte/PGe1mPdZ1mLS/QksFufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i793/rFZbN40ldni 5ccTLA68HmvmrWH02LSqk83jzrU9bB7vzp1j99i8pN6jb8sqRo/Pm+QC2KO4bFJSczLLUov0 7RK4Mn5uuMhe8JWr4u6JXUwNjHM5uxg5OSQETCTm3mtm7WLk4hASWMEocWXabSjnM6PE7afv mGGqHm86wQiRWMYo0dl1lwnCaWCSuLdwKStIFZuAoUTX2y42EFtEIFui8/EDRhCbWWARs8SB Y8IgtrBAskTH//9gU1kEVCX6Tj9iAbF5BWwk3k5azgSxTV5i9YYDQDUcHJwCthJr+6tAdkkI 7GGTuLZ+OjtEjYvEzB8nWCBsYYlXx7dAxWUkLk/uZoFoaGaUaJ8xix3C6WGU2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z7VhGgL 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
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; }