From: Chris Metcalf Date: Mon, 16 May 2011 17:59:39 +0000 (-0400) Subject: arch/tile: use better definitions of xchg() and cmpxchg() X-Git-Tag: v3.0-rc1~152^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aaf1dda42576b0f8dffb004065baa806f4df9b6;p=pandora-kernel.git arch/tile: use better definitions of xchg() and cmpxchg() These definitions use a ({}) construct to avoid some cases where we were getting warnings about unused return values. We also promote the definition to the common , since it applies to both the 32- and 64-bit atomics. In addition, define __HAVE_ARCH_CMPXCHG for TILE-Gx since it has efficient direct atomic instructions. Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed