Skip to content

arm64: cpucap cleanup

Mark Rutland linux-arm-kernel 2 versions – Applied

Status from this message: Applied to arm64 (for-next/cpucap), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4arm64: standardise cpucap bitmap namesarch/arm64/include/asm/cpufeature.h arch/arm64/include/asm/mmu_context.h arch/arm64/kernel/alternative.c +1 more+16 -160 replies
2/4arm64: alternatives: use cpucap namingarch/arm64/include/asm/alternative-macros.h arch/arm64/include/asm/alternative.h arch/arm64/include/asm/cpufeature.h +3 more+41 -420 replies
3/4arm64: cpufeature: use cpucap namingarch/arm64/kernel/cpufeature.c+19 -190 replies
4/4arm64: cpufeature: fold cpus_set_cap() into update_cpu_capabilities()arch/arm64/include/asm/cpufeature.h arch/arm64/kernel/cpufeature.c+2 -110 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMark BrownSuzuki K Poulose
1/4R-b R-b
2/4R-b
3/4R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] arm64: cpucap cleanup

Currently arm64 uses inconsistent terminology when handling cpucaps, with different places in the code referring to these as "capabilities", "features", "cpufeatures", "hwcaps", and "cpu_hwcaps" with the latter two easily being confused with the ELF hwcaps.

Similarly, the bitmaps used to store the boot and system cpucaps are named "boot_capabilities" and "cpu_hwcaps" respectively.

All of this is unnecessarily confusing.

This series tries to apply a consistent "cpucap" naming scheme, following the example of "asm/cpucaps.h" where the cpucap values are defined. This clearly separates these from the ELF hwcaps, and makes it easier to understand the code.

I've split this out from a larger rework of the cpucap logic, as that larger rework isn't yet ready and I think this stands on its own as a nice cleanup.

There should be no functional change as a result of this series.

Thanks,
Mark.

Since v1 [1]:
* Fold in Reviewed-by tags
* Move mmu_context.h comment change to patch 1

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/

Mark Rutland (4):
arm64: standardise cpucap bitmap names
arm64: alternatives: use cpucap naming
arm64: cpufeature: use cpucap naming
arm64: cpufeature: fold cpus_set_cap() into update_cpu_capabilities()

 arch/arm64/include/asm/alternative-macros.h | 54 ++++++++++-----------
 arch/arm64/include/asm/alternative.h        |  4 +-
 arch/arm64/include/asm/cpufeature.h         | 24 +++------
 arch/arm64/include/asm/irqflags.h           |  2 +-
 arch/arm64/include/asm/lse.h                |  2 +-
 arch/arm64/include/asm/mmu_context.h        |  2 +-
 arch/arm64/kernel/alternative.c             | 23 +++++----
 arch/arm64/kernel/cpufeature.c              | 53 ++++++++++----------
 8 files changed, 77 insertions(+), 87 deletions(-)
Signature · 7 lines
2.30.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel