diff options
author | Will Deacon <will.deacon@arm.com> | 2018-06-19 08:53:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-06-21 06:52:12 -0400 |
commit | 356c6fe7d80c678cf77aede0f95291dfd5ed2ef2 (patch) | |
tree | 6b3207b3a7ca59dd15b8b7941808e04ad237d2a3 | |
parent | 7c8fc35dfc32dfa97d8a1dc25dbd064cf83936db (diff) |
locking/atomics/arm64, arm64/bitops: Include <asm-generic/bitops/ext2-atomic-setbit.h>
<asm-generic/bitops/ext2-atomic-setbit.h> provides the ext2 atomic bitop
definitions, so we don't need to define our own.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: yamada.masahiro@socionext.com
Link: https://lore.kernel.org/lkml/1529412794-17720-10-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/arm64/include/asm/bitops.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm64/include/asm/bitops.h b/arch/arm64/include/asm/bitops.h index 13501460be6b..10d536b1af74 100644 --- a/arch/arm64/include/asm/bitops.h +++ b/arch/arm64/include/asm/bitops.h | |||
@@ -38,11 +38,6 @@ | |||
38 | #include <asm-generic/bitops/lock.h> | 38 | #include <asm-generic/bitops/lock.h> |
39 | #include <asm-generic/bitops/non-atomic.h> | 39 | #include <asm-generic/bitops/non-atomic.h> |
40 | #include <asm-generic/bitops/le.h> | 40 | #include <asm-generic/bitops/le.h> |
41 | 41 | #include <asm-generic/bitops/ext2-atomic-setbit.h> | |
42 | /* | ||
43 | * Ext2 is defined to use little-endian byte ordering. | ||
44 | */ | ||
45 | #define ext2_set_bit_atomic(lock, nr, p) test_and_set_bit_le(nr, p) | ||
46 | #define ext2_clear_bit_atomic(lock, nr, p) test_and_clear_bit_le(nr, p) | ||
47 | 42 | ||
48 | #endif /* __ASM_BITOPS_H */ | 43 | #endif /* __ASM_BITOPS_H */ |