MIPS: asm: spinlock: Replace "sub" instruction with "addiu"
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 24 Nov 2014 14:11:39 +0000 (14:11 +0000)
committerMarkos Chandras <markos.chandras@imgtec.com>
Tue, 17 Feb 2015 15:37:23 +0000 (15:37 +0000)
commit5753762cbd1cb208f6e6c916169b56139373b790
tree2d0ffa8b1a9810cbe68734d8a0c12820787f97be
parent1922c356ab2d0031d1acc2979043da4a1105dc4a
MIPS: asm: spinlock: Replace "sub" instruction with "addiu"

"sub $reg, imm" is not a real MIPS instruction. The assembler can
replace that with "addi $reg, -imm". However, addi has been removed
from R6, so we replace the "sub" instruction with the "addiu" one.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/spinlock.h