diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-07-28 15:36:26 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-07-28 15:36:26 -0400 |
commit | e7ec02938dbe8ca35b750f29eaa4b12de0b52754 (patch) | |
tree | fc053d9a21674b173dd61feac4b5a33cccd181d8 /arch/arm | |
parent | 505d7b193181be029f4f9aea59e6bdbfdd1e9e76 (diff) |
[ARM SMP] Fix another ARMv6 bitop problem
We sometimes forgot to check whether the exclusive store succeeded.
Ensure that we always check. Also ensure that we always use the
out of line versions, since the inline versions are not SMP safe.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/lib/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h index 5382a3023602..2036ff15bda9 100644 --- a/arch/arm/lib/bitops.h +++ b/arch/arm/lib/bitops.h | |||
@@ -7,7 +7,7 @@ | |||
7 | 1: ldrexb r2, [r1] | 7 | 1: ldrexb r2, [r1] |
8 | \instr r2, r2, r3 | 8 | \instr r2, r2, r3 |
9 | strexb r0, r2, [r1] | 9 | strexb r0, r2, [r1] |
10 | cmpne r0, #0 | 10 | cmp r0, #0 |
11 | bne 1b | 11 | bne 1b |
12 | mov pc, lr | 12 | mov pc, lr |
13 | .endm | 13 | .endm |