From: Qiaowei Ren Date: Sat, 14 Dec 2013 06:25:02 +0000 (+0800) Subject: x86: add user_atomic_cmpxchg_inatomic at uaccess.h X-Git-Tag: v3.14-rc1~155^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f09174c501f8bb259788cc36d5a7aa5b2831fb5e;p=pandora-kernel.git x86: add user_atomic_cmpxchg_inatomic at uaccess.h This patch adds user_atomic_cmpxchg_inatomic() to use CMPXCHG instruction against a user space address. This generalizes the already existing futex_atomic_cmpxchg_inatomic() so it can be used in other contexts. This will be used in the upcoming support for Intel MPX (Memory Protection Extensions.) [ hpa: replaced #ifdef inside a macro with IS_ENABLED() ] Signed-off-by: Qiaowei Ren Link: http://lkml.kernel.org/r/1387002303-6620-1-git-send-email-qiaowei.ren@intel.com Signed-off-by: H. Peter Anvin Cc: Peter Zijlstra --- Reading git-diff-tree failed