diff options
author | Jayachandran C <jchandra@broadcom.com> | 2012-10-31 12:01:35 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-09 11:37:19 +0100 |
commit | feddaf7d89d554b705e7eb14a9202c4946e57c8e (patch) | |
tree | 8f0ac095229b404f7503f5b916f922a1fe21be3c /arch/mips/netlogic/common/smp.c | |
parent | 862e509b7e31198578449ce356e14a37bd8a6ac7 (diff) | |
download | blackbird-obmc-linux-feddaf7d89d554b705e7eb14a9202c4946e57c8e.tar.gz blackbird-obmc-linux-feddaf7d89d554b705e7eb14a9202c4946e57c8e.zip |
MIPS: Netlogic: Pass cpuid to early_init_secondary
The cpuid was not passed into early_init_secondary even though the
comment indicated that it will be. Fix this.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4458
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/netlogic/common/smp.c')
-rw-r--r-- | arch/mips/netlogic/common/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c index fab316de57e9..cd39f5429e8a 100644 --- a/arch/mips/netlogic/common/smp.c +++ b/arch/mips/netlogic/common/smp.c @@ -98,7 +98,7 @@ void nlm_early_init_secondary(int cpu) change_c0_config(CONF_CM_CMASK, 0x3); write_c0_ebase((uint32_t)nlm_common_ebase); #ifdef CONFIG_CPU_XLP - if (hard_smp_processor_id() % 4 == 0) + if (cpu % 4 == 0) xlp_mmu_init(); #endif } |