Heiko Carstens 12ce0d10f4 futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test
commit 03b8c7b623c80af264c4c8d6111e5c6289933666 upstream.

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 <heiko.carstens@de.ibm.com>
Cc: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Link: http://lkml.kernel.org/r/20140302120947.GA3641@osiris
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[geert: Backported to v3.10..v3.13]
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-04-14 06:47:22 -07:00
..
2014-03-06 22:06:27 -08:00
2013-11-13 12:09:34 +09:00
2013-09-09 11:19:09 -07:00
2013-10-09 12:36:13 +02:00
2012-12-20 17:40:19 -08:00
2013-12-18 19:04:50 -08:00
2013-12-18 19:04:50 -08:00
2013-11-09 00:16:29 -05:00
2014-02-13 13:55:36 -08:00
2013-09-11 15:58:27 -07:00