ARM: kernel: enhance MPIDR macro definitions
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 15 Nov 2012 17:30:32 +0000 (17:30 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 19 Nov 2012 15:44:33 +0000 (15:44 +0000)
commitdca463daa0151c5bbbd8ec8fd42882a3966d3c44
tree37cb674e65b14c2308898bb9a88f57edd946c906
parent77b67063bb6bce6d475e910d3b886a606d0d91f7
ARM: kernel: enhance MPIDR macro definitions

Kernel subsystems other than the topology layer need the MPIDR
mask definitions to access the MPIDR without relying on hardcoded
masks. This patch moves the MPIDR register masks definition to
a header file and defines a macro to simplify access to MPIDR bit fields
representing affinity levels.

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/cputype.h
arch/arm/kernel/topology.c