]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nios2: Switch to generic __xchg()
authorMarek Vasut <marex@denx.de>
Wed, 30 Sep 2015 14:08:00 +0000 (22:08 +0800)
committerLey Foon Tan <lftan@altera.com>
Wed, 30 Sep 2015 18:21:15 +0000 (02:21 +0800)
commit8840da98bfec88f17184f33bfc7ff9dcc22f3b63
tree0cd426f22e3d4e8b1cf46b62c3072465c0c3fbee
parent4ac219236339992a8944dc424cb87d7194072e09
nios2: Switch to generic __xchg()

The generic __xchg() implementation present in asm-generic/cmpxchg.h is
correct on nios2 and even generates the same code. Switch to this generic
implementation to trim down the amount of ad-hoc copies of the code.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/include/asm/cmpxchg.h