]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: EXYNOS: add generic function to calculate cpu number
authorChander Kashyap <chander.kashyap@linaro.org>
Fri, 4 Jul 2014 21:24:35 +0000 (06:24 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 18 Jul 2014 18:35:55 +0000 (03:35 +0900)
commitf1cd368ccc1026f190108268847aa6b9bf9f6dfa
tree31291b11c2b9f6034c58af4e126ca79b6f1ac2ee
parent68d91a5300a7d3e62257671d5cbd4e29954911ea
ARM: EXYNOS: add generic function to calculate cpu number

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 <chander.kashyap@linaro.org>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/regs-pmu.h