locking/atomics, asm-generic/bitops/atomic.h: Rewrite using atomic_*() APIs
authorWill Deacon <will.deacon@arm.com>
Tue, 19 Jun 2018 12:53:11 +0000 (13:53 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jun 2018 10:52:11 +0000 (12:52 +0200)
commite986a0d6cb36b54838b2f5f8ac2bb5f9baadd977
tree66e60b08696ba76917576c5f42d93f70fb79f7ae
parent1c2672b49aa49d4fdc69d4ebbaf959264051e34a
locking/atomics, asm-generic/bitops/atomic.h: Rewrite using atomic_*() APIs

The atomic bitops can actually be implemented pretty efficiently using
the atomic_*() ops, rather than explicit use of spinlocks.

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-7-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/asm-generic/bitops/atomic.h