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>
This commit is contained in:
committed by
John Crispin
parent
862e509b7e
commit
feddaf7d89
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user