OSDN Git Service

MIPS: CPC: provide locking functions
authorPaul Burton <paul.burton@imgtec.com>
Fri, 14 Feb 2014 09:28:06 +0000 (09:28 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Fri, 2 May 2014 15:39:14 +0000 (16:39 +0100)
commit76ae658465c2319a63f3814b1e1e6e0664a1f542
tree4af72b0569cbd60201131e23a9a5da161a638276
parent2ba60250b01bfbab6b2293f8c1492312eb6a4131
MIPS: CPC: provide locking functions

This patch provides functions to lock & unlock access to the
"core-other" register region of the CPC. Without performing appropriate
locking it is possible for code using this region to be preempted or to
race with code on another VPE within the same core, with one changing
the core which the "core-other" region is acting upon at an inopportune
time for the other.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/include/asm/mips-cpc.h
arch/mips/kernel/mips-cpc.c