powerpc/fsl_booke: Add support to boot from core other than 0
authorMatthew McClintock <msm@freescale.com>
Tue, 31 Aug 2010 23:24:45 +0000 (18:24 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 14 Oct 2010 05:52:58 +0000 (00:52 -0500)
commit2ed38b23597284cc96a97e295cb145a6202dfcd4
treeca1c44205682e7fbd8138617031d6fb5933e399f
parentf7a07fd9617140c6111de82400ba1bad3162fb85
powerpc/fsl_booke: Add support to boot from core other than 0

First we check to see if we are the first core booting up. This
is accomplished by comparing the boot_cpuid with -1, if it is we
assume this is the first core coming up.

Secondly, we need to update the initial thread info structure
to reflect the actual cpu we are running on otherwise
smp_processor_id() and related functions will return the default
initialization value of the struct or 0.

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/kernel/setup_32.c