ARM: Enable selection of SMP operations at boot time
authorJon Medhurst <tixy@linaro.org>
Tue, 21 May 2013 13:40:51 +0000 (13:40 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:04:48 +0000 (11:04 +0100)
commitae42c72e2110f3cb3018562eb3980f13bcf819c4
tree3e757ed8b15826d3bf896bb38c38c6f89cb7363a
parent23f83a32303d54cd6c6e45930d1a2ae98ddb9df0
ARM: Enable selection of SMP operations at boot time

Add a new 'smp_init' hook to machine_desc so platforms can specify a
function to be used to setup smp ops instead of having a statically
defined value.  The hook must return true when smp_ops are initialized.
If false the static mdesc->smp_ops will be used by default.

Add the definition of "bool" by including the linux/types.h file to
asm/mach/arch.h and make it self-contained.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/include/asm/mach/arch.h
arch/arm/kernel/setup.c