]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 26 Oct 2015 08:49:50 +0000 (09:49 +0100)
commit3e76da1169f87d95cf16df688e0ec3c817b45b9b
treecfdc99ed770c0c4afbc7e478c71d2c38cda1f3cf
parentc16cc57a56a814bd8bb34f59cc37b67b10bddc0a
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