Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752295AbbKJLra (ORCPT ); Tue, 10 Nov 2015 06:47:30 -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 X-AuditID: cbfee690-f794e6d0000014de-b2-5641d94f7934 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/HCjJTQuAYu0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Y1NLU0sTMwslcR59T2NwoQE0hNLUrNTUwtSi2D6mDg4pRoYVZbO7/s965Pj8wPq13hY vPn0/zFvOifSzOiQ8GxpWrKoZfXjWWsL38y8Kvcls9pQ12pfSOeXuEymNfxTehl7JyrscFrU 0nB9zexH5ULLRUQnfhBbOX/eip9cnPo1iRJ79GSVst0n+R15NsVl0cdbsjO43/PItoXNNrYN XhjDdilsyx6V08LmSizFGYmGWsxFxYkAkYuUbtYCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1674 Lines: 52 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) -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/