]> git.karo-electronics.de Git - linux-beck.git/commit
arm64: lse: convert lse alternatives NOP padding to use __nops
authorWill Deacon <will.deacon@arm.com>
Tue, 6 Sep 2016 15:42:58 +0000 (16:42 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 9 Sep 2016 17:12:34 +0000 (18:12 +0100)
commit05492f2fd87d0a2e6a626bf8fe002c9a11941950
tree021fd9f449e9be0a2876f290f10276bd999dc928
parentf99a250cb6a3b301b101b4c0f5fcb80593bba6dc
arm64: lse: convert lse alternatives NOP padding to use __nops

The LSE atomics are implemented using alternative code sequences of
different lengths, and explicit NOP padding is used to ensure the
patching works correctly.

This patch converts the bulk of the LSE code over to using the __nops
macro, which makes it slightly clearer as to what is going on and also
consolidates all of the padding at the end of the various sequences.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/atomic_lse.h
arch/arm64/include/asm/cmpxchg.h
arch/arm64/include/asm/spinlock.h