Files
kernel_xiaomi_raphael/lib
Mark Rutland b67d2c1804 atomics/generic: Define atomic64_fetch_add_unless()
As a step towards unifying the atomic/atomic64/atomic_long APIs, this
patch converts the generic implementation of atomic64_add_unless() into
a generic implementation of atomic64_fetch_add_unless().

A wrapper in <linux/atomic.h> will build atomic_add_unless() atop of
this, provided it is given a preprocessor definition.

No functional change is intended as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/lkml/20180621121321.4761-9-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-08-26 22:42:03 +05:30
..
2020-08-17 18:55:52 +05:30
2020-05-26 12:13:48 +05:30
2020-06-15 20:34:08 +05:30
2020-06-15 20:38:46 +05:30
2019-04-20 09:15:07 +02:00
2020-08-21 13:41:39 +05:30
2019-12-05 15:37:53 +01:00
2019-05-21 18:50:21 +02:00
2020-08-17 18:55:48 +05:30
2020-08-17 18:55:52 +05:30
2018-12-08 13:03:35 +01:00
2020-08-17 18:55:52 +05:30
2020-08-17 18:55:55 +05:30
2018-12-13 09:18:52 +01:00