From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v6 08/11] ARM: sun9i: smp: Add is_sun8i field Date: Tue, 17 Apr 2018 13:19:02 +0200 Message-ID: <20180417111902.4u6d3mxehxjqibe4@flea> References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-9-mylene.josserand@bootlin.com> <20180417075233.f2z6wxcazwqheoib@flea> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mgjhdnizrdjxc2v3" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Chen-Yu Tsai Cc: =?utf-8?Q?Myl=C3=A8ne?= Josserand , Russell King , Marc Zyngier , Mark Rutland , Rob Herring , Simon , Geert Uytterhoeven , Magnus Damm , "open list:ARM/SHMOBILE ARM..." , devicetree , LABBE Corentin , Quentin Schulz , Thomas Petazzoni , linux-arm-kernel , linux-kernel List-Id: devicetree@vger.kernel.org --mgjhdnizrdjxc2v3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 17, 2018 at 03:57:07PM +0800, Chen-Yu Tsai wrote: > >> @@ -697,6 +700,8 @@ static int __init sunxi_mc_smp_init(void) > >> break; > >> } > >> > >> + is_sun8i =3D sunxi_mc_smp_data[i].is_sun8i; > >> + > > > > Do we really need to cache it? Can't we just have a pointer to the SMP > > data structure and use that instead? >=20 > I recommended that. We don't need any of the other fields in the SMP > data structure once we're past the init phase. This saves a dereference > or two. Fair enough. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --mgjhdnizrdjxc2v3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrV2CUACgkQ0rTAlCFN r3QFRw/+JjrjBNJt+HNnDm8GaE7ITOndVszG5cE5okgfzSBft3JehFRr3mfM6d0I 9dhnN4pMpELEyf6ElSqCd60wKPpVaEzLZ/XvOHIHKi12SqoZbSJ05A0DcDLwolyv FD7KRCd4336kERulK+tGnxkv3FOR2q9mPvqXtpehwVoI0z3rNu2HxnpDnfbKyXyD PTYNtFCU+04O+hY4WNZPdW0bBFevzKqxCI0ZLpAfx9UILeHh6Mdd3WBXINnPpffw B/XJ1m9vhtsQtnUiIpXF9+B6nJ6UPInU/gzmyIHEUetV26rN0eUm6beOPHOgiuLu Et5JDY0MNwqQWf5R76OqFJ7RtqkUZ9jiJM/g5RJdXSf3NUTesKRqOYWXnAMVowRy tO6y/KYhqoyZ4nUQ+kA0wx7spNUoVFjU4Tc8/SfZBGjKFjczWaax83m7/JgjZrk6 ItAvTWcR7EhtBrD6gMUspHssLX0/0czjzMflEdgFVteSWiWHxbE0T4B1GWA5AKpM 8TofCx0JKMcJ2kugCI2h4CPs+8Od0DbzLzhzAltc/+H4wU0oIyRiH+HDDy0g2wBA UB8s8aJWofnKwHRzhyW+wZDqYYHPwo1LdG0Y7fZRnGKZMWCk+JmjD42ZDfv9jtb7 zM/XN6mdfXvsHw+VYBop1IoNF896m83Q85LVrXDdZGQCLnSFWqA= =2G36 -----END PGP SIGNATURE----- --mgjhdnizrdjxc2v3--