arm64: cpufeature: Add helpers for extracting unsigned values
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Wed, 18 Nov 2015 17:08:56 +0000 (17:08 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Nov 2015 18:02:42 +0000 (18:02 +0000)
commitd21182718400f51f0729ae8268d94bd820ec8b71
tree39225ba3b0e4be910d3bedef54a8236d0f0bd02e
parent667c27597ca823f20c524bbd486c6709f905673b
arm64: cpufeature: Add helpers for extracting unsigned values

The cpuid_feature_extract_field() extracts the feature value
as a signed integer. This could be problematic for features
whose values are unsigned. e.g, ID_AA64DFR0_EL1:BRPs. Add
an unsigned variant for the unsigned fields.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reported-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h