Files
android_kernel_xiaomi_sm8450/arch/powerpc/include/asm
Mark Rutland b3a2a05f91 atomics/treewide: Make conditional inc/dec ops optional
The conditional inc/dec ops differ for atomic_t and atomic64_t:

- atomic_inc_unless_positive() is optional for atomic_t, and doesn't exist for atomic64_t.
- atomic_dec_unless_negative() is optional for atomic_t, and doesn't exist for atomic64_t.
- atomic_dec_if_positive is optional for atomic_t, and is mandatory for atomic64_t.

Let's make these consistently optional for both. At the same time, let's
clean up the existing fallbacks to use atomic_try_cmpxchg().

The instrumented atomics are updated accordingly.

There should be no functional change 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: 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-18-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-06-21 14:25:24 +02:00
..
2018-06-07 17:34:35 -07:00
2015-05-28 15:31:53 +02:00
2018-06-03 20:43:39 +10:00
2017-08-15 22:55:58 +10:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2018-06-03 20:32:02 +10:00
2016-03-01 19:27:20 +11:00
2017-06-28 06:54:33 -07:00
2018-04-01 00:47:50 +11:00
2018-05-07 07:15:41 +02:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:26 +10:00
2018-05-25 12:04:43 +10:00
2018-06-03 21:19:40 +10:00
2018-01-15 09:35:26 +01:00
2018-06-03 20:43:34 +10:00
2016-06-14 13:58:26 +10:00
2017-11-12 09:03:10 +11:00
2015-05-05 13:35:39 -06:00