Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b6ff35d authored by Jayachandran C's avatar Jayachandran C Committed by Ralf Baechle
Browse files

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: default avatarJayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5700/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 4ca86a2f
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -106,8 +106,6 @@ 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 */
	if (cpu % NLM_THREADS_PER_CORE == 0)
	xlp_mmu_init();
	xlp_mmu_init();
#endif
#endif
	write_c0_ebase(nlm_current_node()->ebase);
	write_c0_ebase(nlm_current_node()->ebase);