arm64: cpucap cleanup
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
- v2 Latest4 patches 1 replyApplied
- v14 patches 6 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | arm64: standardise cpucap bitmap namesarch/ arch/ arch/ +1 more | +16 | 0 replies | |
| 2/4 | arm64: alternatives: use cpucap namingarch/ arch/ arch/ +3 more | +41 | 0 replies | |
| 3/4 | arm64: cpufeature: use cpucap namingarch/ | +19 | 0 replies | |
| 4/4 | arm64: cpufeature: fold cpus_set_cap() into update_cpu_capabilities()arch/ arch/ | +2 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Mark Brown | Suzuki K Poulose |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | |
| 3/4 | R-b | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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