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>
Wed, 11 Nov 2015 07:35:18 +0000 (08:35 +0100)
commit78a54c4d8e5a7915a4ec2ba0eb461fae50590683
tree50c7b53aa1728ae03979055b249b79f7e88ca3d4
parent4ede31617056b7424eef28dce59dd6dbe81729c3
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