MIPS: CM, CPC: Ensure core-other GCRs reflect the correct core
[cascardo/linux.git] / arch / mips / kernel / mips-cm.c
index 01908db..1448c1f 100644 (file)
@@ -278,6 +278,12 @@ void mips_cm_lock_other(unsigned int core, unsigned int vp)
        }
 
        write_gcr_cl_other(val);
+
+       /*
+        * Ensure the core-other region reflects the appropriate core &
+        * VP before any accesses to it occur.
+        */
+       mb();
 }
 
 void mips_cm_unlock_other(void)