diff options
author | Matthew McClintock <msm@freescale.com> | 2010-09-01 01:24:45 +0200 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2010-10-14 07:52:58 +0200 |
commit | 2ed38b23597284cc96a97e295cb145a6202dfcd4 (patch) | |
tree | ca1c44205682e7fbd8138617031d6fb5933e399f /arch/powerpc/kernel/setup_32.c | |
parent | powerpc/p1022: Add probing for individual DMA channels (diff) | |
download | linux-2ed38b23597284cc96a97e295cb145a6202dfcd4.tar.xz linux-2ed38b23597284cc96a97e295cb145a6202dfcd4.zip |
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>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 93666f9cabf1..8da1632f9fe7 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -46,7 +46,7 @@ extern void bootx_init(unsigned long r4, unsigned long phys); -int boot_cpuid; +int boot_cpuid = -1; EXPORT_SYMBOL_GPL(boot_cpuid); int boot_cpuid_phys; |