OSDN Git Service

MIPS: asm: spinlock: Fix addiu instruction for R10000_LLSC_WAR case
authorMarkos Chandras <markos.chandras@imgtec.com>
Tue, 3 Mar 2015 18:48:48 +0000 (18:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2015 12:14:21 +0000 (05:14 -0700)
commit44e6ee09bec252201891304cff339fb5bcfe4fc5
tree54d07386e19b14fa983cc21d3a6894f6fac7d05d
parenta521000f016321b61a2f610135cfbfa6166c79e1
MIPS: asm: spinlock: Fix addiu instruction for R10000_LLSC_WAR case

Commit 518222161d4a2d3f3b2700098563b62383f83878 upstream.

Commit 5753762cbd1c("MIPS: asm: spinlock: Replace "sub" instruction
with "addiu") replaced the "sub" instruction with addiu but it did
not update the immediate value in the R10000_LLSC_WAR case.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Fixes: 5753762cbd1c("MIPS: asm: spinlock: Replace "sub" instruction with "addiu"")
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9385/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/include/asm/spinlock.h