]> git.baikalelectronics.ru Git - kernel.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>
Wed, 11 Nov 2015 07:35:18 +0000 (08:35 +0100)
commite012af180da61e5ef0a823dcc7a7775a060b4b09
tree50c7b53aa1728ae03979055b249b79f7e88ca3d4
parent25a70847e62e637a8a409f82ca4e363521490582
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