mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
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 <[email protected]> Acked-by: Ley Foon Tan <[email protected]>