From: Ingo Molnar Date: Mon, 9 Jan 2006 23:59:17 +0000 (-0800) Subject: [PATCH] mutex subsystem, add asm-generic/mutex-[dec|xchg|null].h implementations X-Git-Tag: v2.6.16-rc1~655^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620a6fd185c084aa617c411f711533f01ea673c9;p=pandora-kernel.git [PATCH] mutex subsystem, add asm-generic/mutex-[dec|xchg|null].h implementations Add three (generic) mutex fastpath implementations. The mutex-xchg.h implementation is atomic_xchg() based, and should work fine on every architecture. The mutex-dec.h implementation is atomic_dec_return() based - this one too should work on every architecture, but might not perform the most optimally on architectures that have no atomic-dec/inc instructions. The mutex-null.h implementation forces all calls into the slowpath. This is used for mutex debugging, but it can also be used on platforms that do not want (or need) a fastpath at all. Signed-off-by: Ingo Molnar Signed-off-by: Arjan van de Ven --- Reading git-diff-tree failed