diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2016-09-12 14:49:21 (GMT) |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-09-22 11:22:05 (GMT) |
commit | 163352eb6827e5b556b0860edc19327798fcc5ff (patch) | |
tree | cbf0560bda8d49ab34b771f2af56b0ac68c46564 | |
parent | d7d0a11e44a1c6c1e61db7f305115f33be900704 (diff) | |
download | linux-163352eb6827e5b556b0860edc19327798fcc5ff.tar.xz |
ARM: Introduce MPIDR_LEVEL_SHIFT macro
vgic-v3 driver uses architecture specific MPIDR_LEVEL_SHIFT macro to
encode the affinity in a form compatible with ICC_SGI* registers.
Unfortunately, that macro is missing on ARM, so let's add it.
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
-rw-r--r-- | arch/arm/include/asm/cputype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h index 1ee94c7..e2d94c1 100644 --- a/arch/arm/include/asm/cputype.h +++ b/arch/arm/include/asm/cputype.h @@ -55,6 +55,7 @@ #define MPIDR_LEVEL_BITS 8 #define MPIDR_LEVEL_MASK ((1 << MPIDR_LEVEL_BITS) - 1) +#define MPIDR_LEVEL_SHIFT(level) (MPIDR_LEVEL_BITS * level) #define MPIDR_AFFINITY_LEVEL(mpidr, level) \ ((mpidr >> (MPIDR_LEVEL_BITS * level)) & MPIDR_LEVEL_MASK) |