From: Ralf Baechle Date: Thu, 3 Jul 2008 22:28:35 +0000 (+0100) Subject: [MIPS] Fix bug in atomic_sub_if_positive. X-Git-Tag: v2.6.26-rc9~59^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50952026036c7b4212b90091bf23a264c0ccc1fb;p=pandora-kernel.git [MIPS] Fix bug in atomic_sub_if_positive. The branch optimization fixes in 2.6.21 introduced a bug in atomic_sub_if_positive that causes it to return even when the sc instruction fails. The result is that e.g. down_trylock becomes unreliable as the semaphore counter is not always decremented. Original MUA-shredded patch from Morten Larsen . Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed