aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-08-11 05:13:55 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-09-03 17:22:19 -0400
commit5b6ff35d33cb0310c36f9081b9e39cd016715e9c (patch)
treefafe5ad83497ebd9af63e2efd50689da8afbb31d
parent4ca86a2ff37ce92b6875a184a97a20188704cb6c (diff)
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>
-rw-r--r--arch/mips/netlogic/common/smp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c
index 4e35d9c453e2..6f8feb9efcff 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)
106{ 106{
107 change_c0_config(CONF_CM_CMASK, 0x3); 107 change_c0_config(CONF_CM_CMASK, 0x3);
108#ifdef CONFIG_CPU_XLP 108#ifdef CONFIG_CPU_XLP
109 /* mmu init, once per core */ 109 xlp_mmu_init();
110 if (cpu % NLM_THREADS_PER_CORE == 0)
111 xlp_mmu_init();
112#endif 110#endif
113 write_c0_ebase(nlm_current_node()->ebase); 111 write_c0_ebase(nlm_current_node()->ebase);
114} 112}