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>
Mon, 9 Nov 2015 02:33:30 +0000 (10:33 +0800)
commit713e9b802e21e762f31336da72bcfc32e1ab65ac
tree596930c090db40d4410445d288913c782686e117
parent4db2196d0c0de110779b1767d956995efefdb915
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