]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: cpufeature: Cleanup feature bit tables
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 9 Jan 2017 17:28:26 +0000 (17:28 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 10 Jan 2017 17:11:23 +0000 (17:11 +0000)
commiteab43e88734f4ef8cb5ec40827bf784400ed8ffc
tree12f7502952afd9d77cc722b4d33184d0aa0760d2
parent564279ff6f1f4c5eba95f4addd6acd7b1531a653
arm64: cpufeature: Cleanup feature bit tables

This patch does the following clean ups :

1) All undescribed fields of a register are now treated as 'strict'
   with a safe value of 0. Hence we could leave an empty table for
   describing registers which are RAZ.

2) ID_AA64DFR1_EL1 is RAZ and should use the table for RAZ register.

3) ftr_generic32 is used to represent a register with a 32bit feature
   value. Rename this to ftr_singl32 to make it more obvious. Since
   we don't have a 64bit singe feature register, kill ftr_generic.

Based on a patch by Mark Rutland.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@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/kernel/cpufeature.c