From: Heiko Carstens Date: Sun, 2 Mar 2014 12:09:47 +0000 (+0100) Subject: futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test X-Git-Tag: v3.15-rc1~184^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b8c7b623c80af264c4c8d6111e5c6289933666;p=pandora-kernel.git futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test If an architecture has futex_atomic_cmpxchg_inatomic() implemented and there is no runtime check necessary, allow to skip the test within futex_init(). This allows to get rid of some code which would always give the same result, and also allows the compiler to optimize a couple of if statements away. Signed-off-by: Heiko Carstens Cc: Finn Thain Cc: Geert Uytterhoeven Link: http://lkml.kernel.org/r/20140302120947.GA3641@osiris Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed