diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2014-07-23 01:18:15 +0200 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-07-23 01:18:15 +0200 |
commit | 5f534d10d223636b3cd214376471fcfef71baea2 (patch) | |
tree | 38c14b78e01e7270ccce6d6144d124a7129ca707 /arch/arm/mach-exynos/regs-pmu.h | |
parent | Merge branch 'v3.17-next/cleanup-samsung' into v3.17-next/power-exynos (diff) | |
parent | ARM: EXYNOS: populate suspend and powered_up callbacks for mcpm (diff) | |
download | linux-5f534d10d223636b3cd214376471fcfef71baea2.tar.xz linux-5f534d10d223636b3cd214376471fcfef71baea2.zip |
Merge branch 'v3.17-next/cpuidle-exynos' into v3.17-next/power-exynos
Diffstat (limited to 'arch/arm/mach-exynos/regs-pmu.h')
-rw-r--r-- | arch/arm/mach-exynos/regs-pmu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index 1993e6bd5388..c45a2dc53e84 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h @@ -319,4 +319,13 @@ #define EXYNOS5420_SWRESET_KFC_SEL 0x3 +#include <asm/cputype.h> +#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)); +} + #endif /* __ASM_ARCH_REGS_PMU_H */ |