From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Sat, 18 Sep 2010 00:01:27 +0100 Subject: [PATCH 0/4] CPU hotplug support for Versatile platforms In-Reply-To: <4C93DBE6.2040103@gmail.com> References: <1284729124-15297-1-git-send-email-will.deacon@arm.com> <4C93DBE6.2040103@gmail.com> Message-ID: <20100917230127.GA19718@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Sep 17, 2010 at 04:21:42PM -0500, Rob Herring wrote: > The platform specific SMP code is one area that prevents supporting a > single kernel image. All the functions in platsmp.c need to be converted > to function pointers and a lot of that code is pretty simliar across > platforms. What's needed is a common platsmp.c with something like > platform specific smp_ops like PowerPC. I think addressing that first > would simplify this restructuring as you are doing some of what's > needed, but you introducing new namespace problems like platform_cpu_*. The split between smp.c and platsmp.c is there to allow different SMP implementations from the standard ARM Ltd SMP implementation (and there will be different implementations.) Just because all the SMP implementations that are currently merged are the standard ARM Ltd SMP implementation does not mean that we should move stuff out of platsmp.c into the generic code.