Merge branch 'v3.17-next/cpuidle-exynos' into v3.17-next/power-exynos
[deliverable/linux.git] / arch / arm / mach-exynos / regs-pmu.h
index 1993e6bd5388c39606ac9fd074a5f12f0c5620d1..c45a2dc53e844fe88b8a7d9c05a863c731a21af7 100644 (file)
 
 #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 */
This page took 0.030392 seconds and 5 git commands to generate.