]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: CM: Introduce core-other locking functions
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 18:12:16 +0000 (11:12 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 11 Nov 2015 07:35:14 +0000 (08:35 +0100)
commit91d0e033f3993e80b58a6d0b525493b3f58ddfae
treef7f9b6fa12c31bd197fc2151c06ccd7cc39c8a6a
parent8ddfa0ba0611de8b655dc1689610145af7e6652b
MIPS: CM: Introduce core-other locking functions

Introduce mips_cm_lock_other & mips_cm_unlock_other, mirroring the
existing CPC equivalents, in order to lock access from the current core
to another via the core-other GCR region. This hasn't been required in
the past but with CM3 the CPC starts using GCR_CL_OTHER rather than
CPC_CL_OTHER and this will be required for safety.

[ralf@linux-mips.org: Fix merge conflict.]

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11207/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mips-cm.h
arch/mips/kernel/mips-cm.c