diff options
Diffstat (limited to 'arch/arm/lib/bitops.h')
-rw-r--r-- | arch/arm/lib/bitops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h index 52886b89706c..9f12ed1eea86 100644 --- a/arch/arm/lib/bitops.h +++ b/arch/arm/lib/bitops.h | |||
@@ -37,6 +37,11 @@ UNWIND( .fnstart ) | |||
37 | add r1, r1, r0, lsl #2 @ Get word offset | 37 | add r1, r1, r0, lsl #2 @ Get word offset |
38 | mov r3, r2, lsl r3 @ create mask | 38 | mov r3, r2, lsl r3 @ create mask |
39 | smp_dmb | 39 | smp_dmb |
40 | #if __LINUX_ARM_ARCH__ >= 7 && defined(CONFIG_SMP) | ||
41 | .arch_extension mp | ||
42 | ALT_SMP(W(pldw) [r1]) | ||
43 | ALT_UP(W(nop)) | ||
44 | #endif | ||
40 | 1: ldrex r2, [r1] | 45 | 1: ldrex r2, [r1] |
41 | ands r0, r2, r3 @ save old value of bit | 46 | ands r0, r2, r3 @ save old value of bit |
42 | \instr r2, r2, r3 @ toggle bit | 47 | \instr r2, r2, r3 @ toggle bit |