[v2,0/3] arm64/cpufeature: Use macros for ID based matches

Message ID 20230303-arm64-cpufeature-helpers-v2-0-4c8f28a6f203@kernel.org
Headers
Series arm64/cpufeature: Use macros for ID based matches |

Message

Mark Brown April 12, 2023, 5:13 p.m. UTC
  As was recently done for hwcaps convert all the cpufeatures that match
on ID registers to use helper macros to initialise all the data fields
that the matching code uses.  The feature table is much less of an eye
chart than the hwcap tables were so the benefits are less substantial
but the result is still less verbose and error prone so still seems like
a win.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v2:
- Re-add missed .matches in WFxT.
- Rebase onto v6.3-rc3.
- Link to v1: https://lore.kernel.org/r/20230303-arm64-cpufeature-helpers-v1-0-b16cf36acaea@kernel.org

---
Mark Brown (3):
      arm64/cpufeature: Pull out helper for CPUID register definitions
      arm64/cpufeature: Consistently use symbolic constants for min_field_value
      arm64/cpufeature: Use helper macro to specify ID register for capabilites

 arch/arm64/kernel/cpufeature.c | 271 +++++++++--------------------------------
 1 file changed, 59 insertions(+), 212 deletions(-)
---
base-commit: e8d018dd0257f744ca50a729e3d042cf2ec9da65
change-id: 20230303-arm64-cpufeature-helpers-a70213a244e7

Best regards,
  

Comments

Will Deacon April 17, 2023, 3:03 p.m. UTC | #1
On Wed, 12 Apr 2023 18:13:28 +0100, Mark Brown wrote:
> As was recently done for hwcaps convert all the cpufeatures that match
> on ID registers to use helper macros to initialise all the data fields
> that the matching code uses.  The feature table is much less of an eye
> chart than the hwcap tables were so the benefits are less substantial
> but the result is still less verbose and error prone so still seems like
> a win.
> 
> [...]

Applied to arm64 (for-next/cpufeature), thanks!

[1/3] arm64/cpufeature: Pull out helper for CPUID register definitions
      https://git.kernel.org/arm64/c/876e3c8efe79
[2/3] arm64/cpufeature: Consistently use symbolic constants for min_field_value
      https://git.kernel.org/arm64/c/21642da214a9
[3/3] arm64/cpufeature: Use helper macro to specify ID register for capabilites
      https://git.kernel.org/arm64/c/863da0bdb17b

Cheers,