diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2013-06-19 10:40:48 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-24 14:28:43 +0100 |
commit | 18d7f152df31e5a326301fdaad385e40874dff80 (patch) | |
tree | f7972dce2a6b55d99dcae103d076816d95366492 /arch/arm/include/asm/cputype.h | |
parent | 1ba9bf0a9ae779c1a2b3eb64951e4161d9bad7a9 (diff) | |
download | linux-stable-18d7f152df31e5a326301fdaad385e40874dff80.tar.gz linux-stable-18d7f152df31e5a326301fdaad385e40874dff80.tar.bz2 linux-stable-18d7f152df31e5a326301fdaad385e40874dff80.zip |
ARM: 7763/1: kernel: fix __cpu_logical_map default initialization
The __cpu_logical_map array is statically initialized to 0, which is a valid
MPIDR value. To prevent issues with the current implementation, this patch
defines an MPIDR_INVALID value, and statically initializes the
__cpu_logical_map[] array to it. Entries in the arm_dt_init_cpu_maps()
tmp_map array used to stash DT reg properties while parsing DT are initialized
with the MPIDR_INVALID value as well for consistency.
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/cputype.h')
-rw-r--r-- | arch/arm/include/asm/cputype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h index 7652712d1d14..dba62cb1ad08 100644 --- a/arch/arm/include/asm/cputype.h +++ b/arch/arm/include/asm/cputype.h @@ -32,6 +32,8 @@ #define MPIDR_HWID_BITMASK 0xFFFFFF +#define MPIDR_INVALID (~MPIDR_HWID_BITMASK) + #define MPIDR_LEVEL_BITS 8 #define MPIDR_LEVEL_MASK ((1 << MPIDR_LEVEL_BITS) - 1) |