[PATCH v3 07/42] arm64/sve: Put system wide vector length information into structs

Mark Brown broonie at kernel.org
Fri Oct 22 06:49:26 PDT 2021


On Fri, Oct 22, 2021 at 12:23:20PM +0100, Catalin Marinas wrote:
> On Tue, Oct 19, 2021 at 06:22:12PM +0100, Mark Brown wrote:

> > -static void set_sve_default_vl(int val)
> > +static void set_default_vl(enum vec_type type, int val)
> >  {
> > -	WRITE_ONCE(__sve_default_vl, val);
> > +	WRITE_ONCE(vl_config[type].__default_vl, val);
> >  }

> Same here, it should probably be static inline.

TBH I'd be worried if setting the default VL is sufficiently performance
critical that we have to insist on it being inlined - it seems as well
to let the compiler make the choice if it wants to.  It's only useful
for the gets because we need a stub.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211022/3ab6b85c/attachment.sig>


More information about the linux-arm-kernel mailing list