aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nios2/include/asm/cmpxchg.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-05-08nios2: remove wrapper header for cmpxchg.hTobias Klauser1-14/+0
Since commit 713e9b802e21 ("nios2: Switch to generic __xchg()") asm/cmpxchg.h for nios2 is merely including asm-generic/cmpxchg.h. Thus, the wrapper can be omitted and the generic header can be used directly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
2015-11-09nios2: Switch to generic __xchg()Marek Vasut1-47/+0
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>
2014-12-08nios2: Miscellaneous header filesLey Foon Tan1-0/+61
This patch introduces a few nios2-specific header files. Signed-off-by: Ley Foon Tan <lftan@altera.com>