]> git.baikalelectronics.ru Git - kernel.git/commit
locking/atomics: atomic-instrumented: simplify ifdeffery
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 May 2021 14:02:32 +0000 (15:02 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 May 2021 11:20:52 +0000 (13:20 +0200)
commita9c823067e70be84b7e67790fcc9d4b3dee692a5
tree8f19aef168e64491b385e85a6b6b95d3c6c1f5c4
parentd52e73d8abe5ffee9a5a2b20acd071cef2d5e7bb
locking/atomics: atomic-instrumented: simplify ifdeffery

Now that all architectures implement ARCH_ATOMIC, the fallbacks are
generated before the instrumented wrappers are generated. Due to this,
in atomic-instrumented.h we can assume that the whole set of atomic
functions has been generated. Likewise, atomic-instrumented.h doesn't
need to provide a preprocessor definition for every atomic it wraps.

This patch removes the redundant ifdeffery.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210525140232.53872-34-mark.rutland@arm.com
include/asm-generic/atomic-instrumented.h
scripts/atomic/gen-atomic-instrumented.sh