MIPS: Netlogic: Call xlp_mmu_init on all threads

The config7/config4 register has to be written on all the threads.
This does not cause any problems in XLP, but is needed for XLPII

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5700/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Jayachandran C 2013-08-11 14:43:55 +05:30 committed by Ralf Baechle
parent 4ca86a2ff3
commit 5b6ff35d33
1 changed files with 1 additions and 3 deletions

View File

@ -106,9 +106,7 @@ void nlm_early_init_secondary(int cpu)
{
change_c0_config(CONF_CM_CMASK, 0x3);
#ifdef CONFIG_CPU_XLP
/* mmu init, once per core */
if (cpu % NLM_THREADS_PER_CORE == 0)
xlp_mmu_init();
xlp_mmu_init();
#endif
write_c0_ebase(nlm_current_node()->ebase);
}