[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101202173824.GE10461@n2100.arm.linux.org.uk>
Date: Thu, 2 Dec 2010 17:38:24 +0000
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Catalin Marinas <catalin.marinas@....com>
Cc: Anton Vorontsov <avorontsov@...sta.com>,
Kukjin Kim <kgene.kim@...sung.com>,
Srinidhi Kasagar <srinidhi.kasagar@...ricsson.com>,
Tony Lindgren <tony@...mide.com>,
Jamie Iles <jamie.iles@...ochip.com>,
Colin Cross <ccross@...roid.com>, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, linux-tegra@...r.kernel.org,
linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 1/8] ARM: SCU: Add common routines for secondary CPU
bootup
On Thu, Dec 02, 2010 at 04:28:40PM +0000, Catalin Marinas wrote:
> The SCU is part of the core TRM, so I don't expect it to be the same
> across various MP cores (and A15 is an example).
>
> You may want to consolidate functions like scu_prepare_cpus (maybe call
> it smp_prepare_cpus)
You do realise the function called from architecture independent code is
called 'smp_prepare_cpus' ?
> and something that calls set_cpu_possible() but
> with platform callbacks for getting the number of calls and initialising
> the SMP (SCU for most platforms).
What if a platform, for what ever reason, wants to have 3 CPUs,
numbered 0, 2, 3 ? That's the reason why the code which sets the
possible and present maps isn't in the ARM core code - Eg, we don't
know if a platform wants to keep CPU 1 in AMP mode to run some
special software on it.
> Whether this is worth, I don't know.
I don't think it's worth it because I think trying to considate this
is going to cripple the code structure in the future.
What we currently have is a nice sane separation of the core SMP
support from the platform specific parts of the SMP support.
BTW, is it worth making sure that the IC and SCU standby mode bits
are set for A9 MPCore ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists