projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: CM, CPC: Ensure core-other GCRs reflect the correct core
[cascardo/linux.git]
/
arch
/
mips
/
kernel
/
mips-cm.c
diff --git
a/arch/mips/kernel/mips-cm.c
b/arch/mips/kernel/mips-cm.c
index
01908db
..
1448c1f
100644
(file)
--- a/
arch/mips/kernel/mips-cm.c
+++ b/
arch/mips/kernel/mips-cm.c
@@
-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)