]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: cpufeature: Add scope for capability check
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 22 Apr 2016 11:25:31 +0000 (12:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 14:12:21 +0000 (15:12 +0100)
commit8b6f814f1b6db576b1b803957732ae8af1c720d7
tree1b1818a7655ae65b610f75cf24408946cff8996c
parente2a7d288bf2701c5e6ddc1cda42c590fac4de73e
arm64: cpufeature: Add scope for capability check

Add scope parameter to the arm64_cpu_capabilities::matches(), so that
this can be reused for checking the capability on a given CPU vs the
system wide. The system uses the default scope associated with the
capability for initialising the CPU_HWCAPs and ELF_HWCAPs.

Cc: James Morse <james.morse@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c