lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 16 Jun 2014 15:56:19 +0530
From:	Chander Kashyap <>
	Chander Kashyap <>,
	Chander Kashyap <>
Subject: [Patch v7 2/6] arm: exynos: add generic function to calculate cpu number

From: Chander Kashyap <>

The address of cpu power registers in pmu is based on cpu number
offsets. This function calculate the same. This is essentially
required in case of multi-cluster SoC's e.g Exynos5420.

Signed-off-by: Chander Kashyap <>
Signed-off-by: Chander Kashyap <>
Reviewed-by: Tomasz Figa <>
 arch/arm/mach-exynos/regs-pmu.h |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
index 1d13b08..aff23bd 100644
--- a/arch/arm/mach-exynos/regs-pmu.h
+++ b/arch/arm/mach-exynos/regs-pmu.h
@@ -323,4 +323,13 @@
 #define EXYNOS5420_SWRESET_KFC_SEL				0x3
+#include <asm/cputype.h>
+static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
+		 + MPIDR_AFFINITY_LEVEL(mpidr, 0));
 #endif /* __ASM_ARCH_REGS_PMU_H */

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists