Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65220C433F5 for ; Fri, 22 Oct 2021 13:49:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CF6F61248 for ; Fri, 22 Oct 2021 13:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232922AbhJVNvs (ORCPT ); Fri, 22 Oct 2021 09:51:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:59534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbhJVNvq (ORCPT ); Fri, 22 Oct 2021 09:51:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 798296120E; Fri, 22 Oct 2021 13:49:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634910569; bh=wasqAXJABwWIMN9083gbkCvBk1ASO/3vSMZxS7vRi8k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cXD+k/LPoXUFJt860tVG4E65b7p+5AJ0SsSBuWhmTdvCgOXTi5ldeNgGOVVGPFu5d qH32OzsauFYNVZN81YwRA3+CEfbe4acyDJsLlf1rriyRvWAalrLAYaQzb+vyh0KYnU qHLmOgYzRNJ/VheBVSjk+fwFHcmRVWiktzdBamXxNNb3EXN9gZC/wiVgLE9udMUKLF x7Hhcso3QEf7Ggw9LB8AwsDX5IvMi06nuPeZej5kfNd47lYbYSz1fhdpYi4kksDk/7 Ksylit2shefZOi17CB1UWkVTSSKJhfKj43HCHgmySTtjpsW/7TSDbJ7yh8MhMUFGCt kmU5B/K+xO/Yg== Date: Fri, 22 Oct 2021 14:49:26 +0100 From: Mark Brown To: Catalin Marinas Cc: Will Deacon , Shuah Khan , Shuah Khan , Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 07/42] arm64/sve: Put system wide vector length information into structs Message-ID: References: <20211019172247.3045838-1-broonie@kernel.org> <20211019172247.3045838-8-broonie@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7aB3Vt8ajWzS8quD" Content-Disposition: inline In-Reply-To: X-Cookie: I program, therefore I am. Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org --7aB3Vt8ajWzS8quD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --7aB3Vt8ajWzS8quD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmFywWUACgkQJNaLcl1U h9DD2Af/SjYwT92seV1iv0YeNL07ul38QdstN3GPVi5GrUxXzxe9gtKCzJzvYyEi a33b+liuicTjDKBySjmekLurLFf95HeAHMZyGVbcq17YRq3JuRiUCOKPs/Xbrrry VBUEwfQFLtVLocbVsE4NRCgR23/Ts48EATeWag9CR8YXHcCyW3EyDsXH3bS1hech YcP+/ydiyYS/ZcorrrBNXgZtb0NmOVVlBzPBS0fHtytCkOX9BvQxZEW39T34bRTV 8aF6MrEDb21S/hIgUubmS69LdxLivsbDnpY/xu7+LbHZVr458mH5PXRpeDR+BnOu M579Mewi1v5W88dgXacNA0g00RzIDQ== =ObmI -----END PGP SIGNATURE----- --7aB3Vt8ajWzS8quD--