]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: CM, CPC: Ensure core-other GCRs reflect the correct core
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 18:12:18 +0000 (11:12 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Oct 2015 08:49:51 +0000 (09:49 +0100)
commit25ac9f8b97e5515e82de5175b14b58c16bfec247
treeef88f870292ab137d335ddbabcaabd06d215a974
parent946932907c387ea32ec7eef674fa9c4182efc04c
MIPS: CM, CPC: Ensure core-other GCRs reflect the correct core

Ensure the update to which core the core-other GCR regions reflect has
taken place before any core-other GCRs are accessed by placing a memory
barrier (sync instruction) between the write to the core-other registers
and any such GCR accesses.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-kernel@vger.kernel.org
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11209/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips-cm.c
arch/mips/kernel/mips-cpc.c