From: Maxime Ripard Date: Mon, 23 Jan 2017 10:55:45 +0100 Subject: [U-Boot] [linux-sunxi] Re: [PATCH 02/12] sunxi: simplify ACTLR.SMP bit set #ifdef In-Reply-To: <13a5b049-d5aa-738a-a514-d252b068741c@arm.com> References: <1484271004-19681-1-git-send-email-andre.przywara@arm.com> <1484271004-19681-3-git-send-email-andre.przywara@arm.com> <633881484282502@web28m.yandex.ru> <20170116074447.3m6is3wayfcc2xxl@lukather> <13a5b049-d5aa-738a-a514-d252b068741c@arm.com> Message-ID: <20170123095545.r2hhpipg2bngrk75@lukather> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 22, 2017 at 01:06:47AM +0000, Andr? Przywara wrote: > > If we still needs it, > > First: we definitely need this symbol, since it guards an implementation > defined register and the Cortex-A53 does not define it. So we have to > confine its use to the ARMv7 Cortex CPUs. Ack. > > x86 has a CONFIG_SMP symbol, that would be > > better to just leverage that. > > Sounds tempting, but this seems to be a generic symbol that enables SMP > support _within_ U-Boot, so it allows multiple cores to execute U-Boot > code. This is clearly not what we want. Defining it seems to enable > architecture specific and generic code paths in U-Boot. > > I can rename this symbol if that helps to avoid confusion, for instance > to read CONFIG_SUNXI_NO_ACTLR_SMP or to CONFIG_CPU_IS_NOT_SMP or > CONFIG_CPU_IS_UP. There's nothing sunxi specific about it, the last one is better imho. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: