diff options
author | Qiaowei Ren <qiaowei.ren@intel.com> | 2013-12-14 10:25:02 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-12-16 21:07:57 +0400 |
commit | f09174c501f8bb259788cc36d5a7aa5b2831fb5e (patch) | |
tree | 6c38b937005241368a7bd6a01c58b4f181f2a959 /drivers | |
parent | e7d820a5e549b3eb6c3f9467507566565646a669 (diff) | |
download | linux-f09174c501f8bb259788cc36d5a7aa5b2831fb5e.tar.xz |
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 <qiaowei.ren@intel.com>
Link: http://lkml.kernel.org/r/1387002303-6620-1-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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions