linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: cpucap cleanup
@ 2023-06-01 10:08 Mark Rutland
  2023-06-01 10:08 ` [PATCH 1/4] arm64: standardise cpucap bitmap names Mark Rutland
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Mark Rutland @ 2023-06-01 10:08 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: broonie, catalin.marinas, mark.rutland, maz, suzuki.poulose, will

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.

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(-)

-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-06-01 14:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-01 10:08 [PATCH 0/4] arm64: cpucap cleanup Mark Rutland
2023-06-01 10:08 ` [PATCH 1/4] arm64: standardise cpucap bitmap names Mark Rutland
2023-06-01 10:08 ` [PATCH 2/4] arm64: alternatives: use cpucap naming Mark Rutland
2023-06-01 10:08 ` [PATCH 3/4] arm64: cpufeature: " Mark Rutland
2023-06-01 11:07   ` Mark Brown
2023-06-01 12:54   ` Marc Zyngier
2023-06-01 14:31     ` Mark Rutland
2023-06-01 10:08 ` [PATCH 4/4] arm64: cpufeature: fold cpus_set_cap() into update_cpu_capabilities() Mark Rutland
2023-06-01 11:14   ` Mark Brown
2023-06-01 14:07 ` [PATCH 0/4] arm64: cpucap cleanup Suzuki K Poulose
2023-06-01 14:33   ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).