diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-08-31 10:31:09 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-08-31 12:48:15 (GMT) |
commit | 6f2b7eeff9dbadeb7366d44086aa34792a996fc9 (patch) | |
tree | cd7233c0c346a9551beaf27b5f62533d56e00a6e /arch/arm64/include/asm/cpufeature.h | |
parent | 5e49d73c1d87de50353844d263c1c7664aefeec8 (diff) | |
download | linux-6f2b7eeff9dbadeb7366d44086aa34792a996fc9.tar.xz |
arm64: cpufeature: constify arm64_ftr_regs array
Constify the arm64_ftr_regs array, by moving the mutable arm64_ftr_reg
fields out of the array itself. This also streamlines the bsearch, since
the entire array can be covered by fewer cachelines. Moving the payload
out of the array also allows us to have special explicitly defined
struct instance in case other code needs to refer to it directly.
Note that this replaces the runtime sorting of the array with a runtime
BUG() check whether the array is sorted correctly in the code.
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 7c0b7cf..8bb4f15 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -72,7 +72,6 @@ struct arm64_ftr_bits { * @sys_val Safe value across the CPUs (system view) */ struct arm64_ftr_reg { - u32 sys_id; const char *name; u64 strict_mask; u64 sys_val; |