]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: replace futex_atomic_cmpxchg_inatomic() with user_atomic_cmpxchg_inatomic
authorQiaowei Ren <qiaowei.ren@intel.com>
Sat, 14 Dec 2013 06:25:03 +0000 (14:25 +0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 16 Dec 2013 17:08:13 +0000 (09:08 -0800)
commit0ee3b6f87d4d748d5362cb47ff33fa1553805cb4
tree945b464d616fe7745e6b21585ecc443919e4b1ea
parentf09174c501f8bb259788cc36d5a7aa5b2831fb5e
x86: replace futex_atomic_cmpxchg_inatomic() with user_atomic_cmpxchg_inatomic

futex_atomic_cmpxchg_inatomic() is simply the 32-bit implementation of
user_atomic_cmpxchg_inatomic(), which in turn is simply a
generalization of the original code in
futex_atomic_cmpxchg_inatomic().

Use the newly generalized user_atomic_cmpxchg_inatomic() as the futex
implementation, too.

[ hpa: retain the inline in futex.h rather than changing it to a macro ]

Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
Link: http://lkml.kernel.org/r/1387002303-6620-2-git-send-email-qiaowei.ren@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
arch/x86/include/asm/futex.h