diff options
Diffstat (limited to 'arch/arm64/include/asm/smp_plat.h')
| -rw-r--r-- | arch/arm64/include/asm/smp_plat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/smp_plat.h b/arch/arm64/include/asm/smp_plat.h index ed43a0d2b1b2..59e282311b58 100644 --- a/arch/arm64/include/asm/smp_plat.h +++ b/arch/arm64/include/asm/smp_plat.h | |||
| @@ -21,6 +21,19 @@ | |||
| 21 | 21 | ||
| 22 | #include <asm/types.h> | 22 | #include <asm/types.h> |
| 23 | 23 | ||
| 24 | struct mpidr_hash { | ||
| 25 | u64 mask; | ||
| 26 | u32 shift_aff[4]; | ||
| 27 | u32 bits; | ||
| 28 | }; | ||
| 29 | |||
| 30 | extern struct mpidr_hash mpidr_hash; | ||
| 31 | |||
| 32 | static inline u32 mpidr_hash_size(void) | ||
| 33 | { | ||
| 34 | return 1 << mpidr_hash.bits; | ||
| 35 | } | ||
| 36 | |||
| 24 | /* | 37 | /* |
| 25 | * Logical CPU mapping. | 38 | * Logical CPU mapping. |
| 26 | */ | 39 | */ |
