From: Nicolas Pitre Date: Wed, 8 Feb 2006 21:19:38 +0000 (+0000) Subject: [ARM] 3311/1: clean up include/asm-arm/mutex.h X-Git-Tag: v2.6.16-rc3~56^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365bf8ac6f5b3d3187cb39444fa87a5b38683ff4;p=pandora-kernel.git [ARM] 3311/1: clean up include/asm-arm/mutex.h Patch from Nicolas Pitre Since: if (unlikely(__res || __ex_flag)) produces worse code on ARM than: if (unlikely(__res | __ex_flag)) I therefore made it more explicit: __res |= __ex_flag; if (unlikely(__res != 0)) so it is not seen as a typo again. Also made everything static inline rather than macros for better readability (both produce the same code after all). And finally added missing \t from multi-line assembly code. Signed-off-by: Nicolas Pitre Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Andrew Morton Signed-off-by: Russell King --- Reading git-diff-tree failed