diff options
author | Alexander Graf <agraf@suse.de> | 2014-04-30 19:21:10 +0200 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-05-13 08:26:55 -0700 |
commit | b539534d120c3f017965b25aa36fcfb75db8383c (patch) | |
tree | 6a5b8766ea4c7b643f279f1fe3a46eb547008029 /arch/powerpc/cpu/mpc8xxx/cpu.c | |
parent | 522641a78862d2ecf9b89cc29dfb4429ee1b4103 (diff) | |
download | u-boot-imx-b539534d120c3f017965b25aa36fcfb75db8383c.zip u-boot-imx-b539534d120c3f017965b25aa36fcfb75db8383c.tar.gz u-boot-imx-b539534d120c3f017965b25aa36fcfb75db8383c.tar.bz2 |
PPC 85xx QEMU: Always assume 1 core
We only need u-boot to bother about a single core in the QEMU machine.
Everything that would require additional knowledge of more cores gets
handled by QEMU and passed straight into the payload we execute.
Because of this setup, it would be counterproductive to enable SMP support
in u-boot. We would have to rip CPUs out of already existing spin tables
and respin them from u-boot. It would be a pretty big mess.
So only assume we have a single core. This fixes errors about CONFIG_MP
being disabled.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/cpu.c')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/cpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/cpu.c b/arch/powerpc/cpu/mpc8xxx/cpu.c index dfedc53..13bd0ac 100644 --- a/arch/powerpc/cpu/mpc8xxx/cpu.c +++ b/arch/powerpc/cpu/mpc8xxx/cpu.c @@ -177,7 +177,7 @@ struct cpu_type *identify_cpu(u32 ver) /* * Return a 32-bit mask indicating which cores are present on this SOC. */ -u32 cpu_mask(void) +__weak u32 cpu_mask(void) { ccsr_pic_t __iomem *pic = (void *)CONFIG_SYS_MPC8xxx_PIC_ADDR; struct cpu_type *cpu = gd->arch.cpu; @@ -196,7 +196,7 @@ u32 cpu_mask(void) /* * Return the number of cores on this SOC. */ -int cpu_numcores(void) +__weak int cpu_numcores(void) { struct cpu_type *cpu = gd->arch.cpu; |