arm64: kernel: add MPIDR_EL1 accessors macros
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 5 Aug 2013 14:24:27 +0000 (15:24 +0100)
committerAlex Shi <alex.shi@linaro.org>
Mon, 10 Mar 2014 05:38:37 +0000 (13:38 +0800)
commit1447ced2fb88eb2d7fa7df79f156569ffaa97913
tree6502e112e48e72f0bbdbe54e4c45d4d5f652ecf8
parentab89b1b300a1ae3c13a9c965770cdadc60d53d21
arm64: kernel: add MPIDR_EL1 accessors macros

In order to simplify access to different affinity levels within the
MPIDR_EL1 register values, this patch implements some preprocessor
macros that allow to retrieve the MPIDR_EL1 affinity level value according
to the level passed as input parameter.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
arch/arm64/include/asm/cputype.h