projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
arch
/
arm64
/
include
/
asm
/
smp_plat.h
diff --git
a/arch/arm64/include/asm/smp_plat.h
b/arch/arm64/include/asm/smp_plat.h
index ed43a0d2b1b2c19aaf4e3d2ecca6eecc655bea94..59e282311b582b76b975fa5fe5520090a3f3687d 100644
(file)
--- a/
arch/arm64/include/asm/smp_plat.h
+++ b/
arch/arm64/include/asm/smp_plat.h
@@
-21,6
+21,19
@@
#include <asm/types.h>
+struct mpidr_hash {
+ u64 mask;
+ u32 shift_aff[4];
+ u32 bits;
+};
+
+extern struct mpidr_hash mpidr_hash;
+
+static inline u32 mpidr_hash_size(void)
+{
+ return 1 << mpidr_hash.bits;
+}
+
/*
* Logical CPU mapping.
*/