提交 5b6ff35d 编写于 作者: J Jayachandran C 提交者: Ralf Baechle

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: NJayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5700/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 4ca86a2f
...@@ -106,9 +106,7 @@ void nlm_early_init_secondary(int cpu) ...@@ -106,9 +106,7 @@ void nlm_early_init_secondary(int cpu)
{ {
change_c0_config(CONF_CM_CMASK, 0x3); change_c0_config(CONF_CM_CMASK, 0x3);
#ifdef CONFIG_CPU_XLP #ifdef CONFIG_CPU_XLP
/* mmu init, once per core */ xlp_mmu_init();
if (cpu % NLM_THREADS_PER_CORE == 0)
xlp_mmu_init();
#endif #endif
write_c0_ebase(nlm_current_node()->ebase); write_c0_ebase(nlm_current_node()->ebase);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册