From patchwork Tue Nov 10 11:42:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 7589511 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 553C39F392 for ; Tue, 10 Nov 2015 11:47:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 618C32070D for ; Tue, 10 Nov 2015 11:47:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6EACB205FF for ; Tue, 10 Nov 2015 11:47:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbbKJLr3 (ORCPT ); Tue, 10 Nov 2015 06:47:29 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:34644 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbbKJLr2 (ORCPT ); Tue, 10 Nov 2015 06:47:28 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NXL01IUVKR3D7A0@mailout1.samsung.com>; Tue, 10 Nov 2015 20:47:27 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.122]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FA.22.05342.F49D1465; Tue, 10 Nov 2015 20:47:27 +0900 (KST) X-AuditID: cbfee690-f794e6d0000014de-b2-5641d94f7934 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 07.7B.18629.E49D1465; Tue, 10 Nov 2015 20:47:26 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NXL0077JKNPME50@mmp1.samsung.com>; Tue, 10 Nov 2015 20:47:26 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kgene.kim@samsung.com, k.kozlowski@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com, olof@lixom.net, khilman@linaro.org, arnd@arndb.de, Pankaj Dubey Subject: [PATCH v4 1/9] ARM: EXYNOS: removing redundant code from regs-pmu.h Date: Tue, 10 Nov 2015 17:12:56 +0530 Message-id: <1447155784-12667-2-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 In-reply-to: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> References: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsWyRsSkStf/pmOYwb3DnBYfV79ks/g76Ri7 xesXhha9C66yWXw9vILRYtPja6wWl3fNYbOYcX4fk8Wp65/ZLBZt/cJu0bGM0YHb4/evSYwe O2fdZfe4c20Pm8fmJfUeV040sXr0bVnF6PF5k1wAexSXTUpqTmZZapG+XQJXxtOuDcwFR7gr /q6dyNTA+ICzi5GTQ0LAROJj5xl2CFtM4sK99WxdjFwcQgIrGCWOvzzJDFP08MI0ZojEUkaJ Ky2bwBJCAq1MElcOcIPYbAK6Ek/ezwWLiwhkS1xpvA/WwCxwgFFix7pXjCAJYQEfiWlz14PZ LAKqEoePrwVr4BXwkDj57T5QnANom5zE0uZakDCngKdEz9KbTBC7PCTeP7/HCjJTQuAYu0Tz l00sEHMEJL5NPsQC0SsrsekA1NGSEgdX3GCZwCi8gJFhFaNoakFyQXFSepGJXnFibnFpXrpe cn7uJ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OiQ8GxpWrKoZfXjWWsL38y8Kvcls9pQ12pfSOeXuEymNfxTehl7JyrscFrU 0nB9zexH5ULLRUQnfhBbOX/eip9cnPo1iRJ79GSVst0n+R15NsVl0cdbsjO43/PItoXNNrYN XhjDdilsyx6V08LmSizFGYmGWsxFxYkAkYuUbtYCAAA= 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=-7.2 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 commit 6ec4f8d0d91f ("ARM: EXYNOS: add generic function to calculate cpu number") introduced exynos_pmu_cpunr to be used by multi-cluster SoC's e.g Exynos5420, but it's no more used in the codebase and hence removing this part of code. Signed-off-by: Pankaj Dubey Reviewed-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/pmu.c | 1 + arch/arm/mach-exynos/regs-pmu.h | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index 5775154..64ea7d6 100644 --- a/arch/arm/mach-exynos/pmu.c +++ b/arch/arm/mach-exynos/pmu.c @@ -17,6 +17,7 @@ #include #include +#include #include "exynos-pmu.h" #include "regs-pmu.h" diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index fba9068..5e4f4c2 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h @@ -484,15 +484,6 @@ #define EXYNOS5420_SWRESET_KFC_SEL 0x3 -#include -#define MAX_CPUS_IN_CLUSTER 4 - -static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr) -{ - return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER) - + MPIDR_AFFINITY_LEVEL(mpidr, 0)); -} - /* Only for EXYNOS5420 */ #define EXYNOS5420_ISP_ARM_OPTION 0x2488 #define EXYNOS5420_L2RSTDISABLE_VALUE BIT(3)