[PATCH 11/37] arm64: Rename SVE/SME cpu_enable functions

Mark Rutland mark.rutland at arm.com
Thu Sep 21 09:50:46 PDT 2023


On Tue, Sep 19, 2023 at 11:52:47AM +0100, Mark Brown wrote:
> On Tue, Sep 19, 2023 at 10:28:24AM +0100, Mark Rutland wrote:
> > The arm64_cpu_capabilities::cpu_enable() callbacks for SVE, SME, SME2,
> > and FA64 are named with an unusual "${feature}_kernel_enable" pattern
> > rather than the much more common "cpu_enable_${feature}". Now that we
> > only use these as cpu_enable() callbacks, it would be nice to have them
> > match the usual scheme.
> 
> Reviewed-by: Mark Brown <broonie at kernel.org>
> 
> However:
> 
> > This patch renames the cpu_enable() callbacks to match this scheme. At
> > the tsame time, the existing comments regarding ordering requirements
> 
> Typo.

Thanks; fixed.

> > are turned into build-time assertions, matching what we do for
> > can_use_gic_priorities() and has_gic_prio_relaxed_sync(), and the newly
> > redundant comments are removed.
> 
> This should really be a separate commit.

Sure -- I've split this into a first patch which adds the assertions, and a
second which does the rename.

Mark.



More information about the linux-arm-kernel mailing list