Thread (13 messages) 13 messages, 1 author, 2013-08-21
STALE4720d

[PATCH 05/10] MIPS: Netlogic: Call xlp_mmu_init on all threads

From: Jayachandran C <hidden>
Date: 2013-08-11 09:16:25
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

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 <redacted>
---
 arch/mips/netlogic/common/smp.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c
index 4e35d9c..6f8feb9 100644
--- a/arch/mips/netlogic/common/smp.c
+++ b/arch/mips/netlogic/common/smp.c
@@ -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);
 }
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help