commit | 90df4ef19e6dfb7521e05ece60546677491c9e32 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Wed Sep 30 22:08:00 2015 +0800 |
committer | Ley Foon Tan <lftan@altera.com> | Mon Oct 19 02:15:41 2015 +0800 |
tree | fb25001482fab74aa8ccd0c33dd724214c5c5ff0 | |
parent | 577da9b93378b056215d239ba2216401bfd5a069 [diff] |
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>