diff options
author | Peter Zijlstra <peterz@infradead.org> | 2016-06-17 11:05:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-20 05:25:50 -0400 |
commit | 86a664d58f3ba2398a378dc9da6d4cfa737d2281 (patch) | |
tree | 2e57c99f7f1a38bd43f41eb0021b78e0ce90d5af | |
parent | 4aef66c8ae91d00affeeb24cfb176b53354ac969 (diff) |
locking/atomic, arch/m68k: Remove comment
I misread the inline asm. It uses a rare construct to provide an input
to a previously declared output to do the atomic_read().
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: linux-m68k@lists.linux-m68k.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/m68k/include/asm/atomic.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/m68k/include/asm/atomic.h b/arch/m68k/include/asm/atomic.h index 3e03de7ae33b..cf4c3a7b1a45 100644 --- a/arch/m68k/include/asm/atomic.h +++ b/arch/m68k/include/asm/atomic.h | |||
@@ -38,13 +38,6 @@ static inline void atomic_##op(int i, atomic_t *v) \ | |||
38 | 38 | ||
39 | #ifdef CONFIG_RMW_INSNS | 39 | #ifdef CONFIG_RMW_INSNS |
40 | 40 | ||
41 | /* | ||
42 | * Am I reading these CAS loops right in that %2 is the old value and the first | ||
43 | * iteration uses an uninitialized value? | ||
44 | * | ||
45 | * Would it not make sense to add: tmp = atomic_read(v); to avoid this? | ||
46 | */ | ||
47 | |||
48 | #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ | 41 | #define ATOMIC_OP_RETURN(op, c_op, asm_op) \ |
49 | static inline int atomic_##op##_return(int i, atomic_t *v) \ | 42 | static inline int atomic_##op##_return(int i, atomic_t *v) \ |
50 | { \ | 43 | { \ |