diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2016-01-26 13:58:15 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-25 13:33:07 +0300 |
commit | ff96f7bc7bf6393eef8ff2bde1279715ce13343a (patch) | |
tree | 226241138580aad4b9ed401b1759d7fa7597fbd7 /arch/arm64/include/asm/cpufeature.h | |
parent | 0710cfdb8db674df622cc1858e033c11d255af80 (diff) | |
download | linux-ff96f7bc7bf6393eef8ff2bde1279715ce13343a.tar.xz |
arm64: capabilities: Handle sign of the feature bit
Use the appropriate accessor for the feature bit by keeping
track of the sign of the feature
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 14007b126277..42e492a9e0fd 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -88,9 +88,10 @@ struct arm64_cpu_capabilities { struct { /* Feature register checking */ u32 sys_reg; - int field_pos; - int min_field_value; - int hwcap_type; + u8 field_pos; + u8 min_field_value; + u8 hwcap_type; + bool sign; unsigned long hwcap; }; }; |