]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: kernel: add logical mappings look-up
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 17 Nov 2011 17:36:24 +0000 (17:36 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 19 Nov 2012 15:44:34 +0000 (15:44 +0000)
commit8308a9a7447882781a1dc70c2d3cb8e0a58dcedf
tree6779f47914253478511d85d7aa544b911c1f0ddc
parent1e417add90a1737c0f37551211a0e0b5f90af5f7
ARM: kernel: add logical mappings look-up

In ARM SMP systems the MPIDR register ([23:0] bits) is used to uniquely
identify CPUs.

In order to retrieve the logical CPU index corresponding to a given
MPIDR value and guarantee a consistent translation throughout the kernel,
this patch adds a look-up based on the MPIDR[23:0] so that kernel subsystems
can use it whenever the logical cpu index corresponding to a given MPIDR
value is needed.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/include/asm/smp_plat.h