Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754661AbbKMJcc (ORCPT ); Fri, 13 Nov 2015 04:32:32 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:40965 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbbKMJc0 (ORCPT ); Fri, 13 Nov 2015 04:32:26 -0500 X-AuditID: cbfee690-f794e6d0000014de-a0-5645ae2812b4 From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.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 v5 1/9] ARM: EXYNOS: removing redundant code from regs-pmu.h Date: Fri, 13 Nov 2015 14:59:35 +0530 Message-id: <1447406983-27835-2-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 In-reply-to: <1447406983-27835-1-git-send-email-pankaj.dubey@samsung.com> References: <1447406983-27835-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRmVeSWpSXmKPExsWyRsSkVldjnWuYwenlIhYfV79ks/g76Ri7 xesXhha9C66yWXw9vILRYtPja6wWl3fNYbP43HuE0WLG+X1MFqeuf2azWLT1C7tFxzJGBx6P 378mMXrsnHWX3ePOtT1sHpuX1HtcOdHE6tG3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZT7s2 MBcc4a74u3YiUwPjA84uRg4OCQETiakbgExOIFNM4sK99WxdjFwcQgIrGCV+frzBCJEwkejf +wUqsZRRYvW6HawQTiuTRGfvM2aQKjYBXYkn7+cygyREBFoZJZbt/88E4jALHGCU2LHuFdgs YQEfiQtrJrKD2CwCqhL/ju4Cs3kFPCSm7ZrAAnGTnMTS5lqQMKeAp8T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XPwMK8aYkVlalFuXHF5XmpBYfYjQFumsis5Ro cj4wVeSVxBsam5ibGptamliYmFkqifPqexqFCQmkJ5akZqemFqQWwfQxcXBKNTCy8F53yO1u vFlg/cWQ03eG2ufCBz/6tFaLlH+Pf1n+yXwu7/pru/s1FDmaz1rPaNO8Gs6lNDFTyHPeUR0T FdeKSVJiAlNlLRWlWRewvd+eMO3AWo6eFEaZkvW5CoeqF3KFb3gdWFnucMvUu5J34g7P8z/D Hj+zm8BwhOWFcq5pct9kM/eSTiWW4oxEQy3mouJEAEBoJPrdAgAA 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/