android_kernel_sony_sdm845/arch/sh
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mark Rutland a03ac1ef27 BACKPORT: atomics/treewide: Make atomic_fetch_add_unless() optional
Several architectures these have a near-identical implementation based
on atomic_read() and atomic_cmpxchg() which we can instead define in
<linux/atomic.h>, so let's do so, using something close to the existing
x86 implementation with try_cmpxchg().

Where an architecture provides its own atomic_fetch_add_unless(), it
must define a preprocessor symbol for it. The instrumented atomics are
updated accordingly.

Note that arch/arc's existing atomic_fetch_add_unless() had redundant
barriers, as these are already present in its atomic_cmpxchg()
implementation.

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

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Palmer Dabbelt <palmer@sifive.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vineet Gupta <vgupta@synopsys.com>
Link: https://lore.kernel.org/lkml/20180621121321.4761-7-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:14 +07:00
..
boards sh: landisk: Add missing initialization of sh_io_port_base 2020-08-21 11:02:11 +02:00
boot sh: add device tree source for J2 FPGA on Mimas v2 board 2016-08-05 03:38:26 +00:00
cchips genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
configs sh: add earlycon support to j2_defconfig 2016-10-18 18:54:56 -04:00
drivers This is the 4.9.254 stable release 2021-01-30 14:34:37 +01:00
include BACKPORT: atomics/treewide: Make atomic_fetch_add_unless() optional 2026-05-15 17:59:14 +07:00
kernel sh: machvec: Use char[] for section boundaries 2022-10-26 13:15:38 +02:00
lib sh: New gcc support 2016-03-17 19:45:44 +00:00
lib64
math-emu
mm gup: document and work around "COW can break either way" issue 2022-01-27 08:47:42 +01:00
oprofile
tools
Kconfig sh: add SMP support for J2 2016-08-05 03:29:39 +00:00
Kconfig.cpu
Kconfig.debug sh: fix kconfig unmet dependency warning for FRAME_POINTER 2021-11-26 11:48:41 +01:00
Makefile sh: support CPU_J2 when compiler lacks -mj2 2016-10-13 16:15:41 -04:00