arm64/capabilities: Make use of system wide safe value
authorSuzuki K. Poulose <[email protected]>
Mon, 19 Oct 2015 13:24:51 +0000 (14:24 +0100)
committerCatalin Marinas <[email protected]>
Wed, 21 Oct 2015 14:35:58 +0000 (15:35 +0100)
commitda8d02d19ffdd201af632c755a473b6df4b3e4cc
tree2476e4ff30f1cdc887e39bd1e067de832a562dd8
parentdbb4e152b8da1f977d9d8cd7e494ab4ee3622f72
arm64/capabilities: Make use of system wide safe value

Now that we can reliably read the system wide safe value for a
feature register, use that to compute the system capability.
This patch also replaces the 'feature-register-specific'
methods with a generic routine to check the capability.

Signed-off-by: Suzuki K. Poulose <[email protected]>
Tested-by: Dave Martin <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c