From: Will Deacon Date: Fri, 23 Sep 2011 13:34:12 +0000 (+0100) Subject: ARM: 7099/1: futex: preserve oldval in SMP __futex_atomic_op X-Git-Tag: v3.1-rc8~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df77abcafc8dc881b6c9347548651777088e4b27;p=pandora-kernel.git ARM: 7099/1: futex: preserve oldval in SMP __futex_atomic_op The SMP implementation of __futex_atomic_op clobbers oldval with the status flag from the exclusive store. This causes it to always read as zero when performing the FUTEX_OP_CMP_* operation. This patch updates the ARM __futex_atomic_op implementations to take a tmp argument, allowing us to store the strex status flag without overwriting the register containing oldval. Cc: stable@kernel.org Reported-by: Minho Ban Reviewed-by: Nicolas Pitre Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed