locking/atomics: Provide the arch_atomic_ interface to generic code
authorPeter Zijlstra <peterz@infradead.org>
Thu, 25 Jun 2020 13:55:14 +0000 (15:55 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 25 Jun 2020 15:23:22 +0000 (08:23 -0700)
commit5faafd5685764e4d75376aceac91fdf75b3b16f8
treeae6587b97347227d2c2b7e50b9a5f049e2b70fbd
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
locking/atomics: Provide the arch_atomic_ interface to generic code

Architectures with instrumented (KASAN/KCSAN) atomic operations
natively provide arch_atomic_ variants that are not instrumented.

It turns out that some generic code also requires arch_atomic_ in
order to avoid instrumentation, so provide the arch_atomic_ interface
as a direct map into the regular atomic_ interface for
non-instrumented architectures.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/atomic-fallback.h
scripts/atomic/gen-atomic-fallback.sh