[ARM SMP] Add configuration option for ARMv6K processors
[deliverable/linux.git] / arch / arm / lib / bitops.h
index 5382a302360273d697b10839ab21ca92d9bb1e71..f35d91fbe11742dcd91d0ad9fdf76d796f3b7548 100644 (file)
@@ -1,4 +1,6 @@
-#if __LINUX_ARM_ARCH__ >= 6
+#include <linux/config.h>
+
+#if __LINUX_ARM_ARCH__ >= 6 && defined(CONFIG_CPU_32v6K)
        .macro  bitop, instr
        mov     r2, #1
        and     r3, r0, #7              @ Get bit offset
@@ -7,7 +9,7 @@
 1:     ldrexb  r2, [r1]
        \instr  r2, r2, r3
        strexb  r0, r2, [r1]
-       cmpne   r0, #0
+       cmp     r0, #0
        bne     1b
        mov     pc, lr
        .endm
This page took 0.027487 seconds and 5 git commands to generate.