diff options
| author | Lukas0610 <mail@lukasberger.at> | 2017-09-16 01:56:55 +0430 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-09-16 17:37:30 +0200 |
| commit | 7755159b1ba50c59c1c05fa8069a884fae526d66 (patch) | |
| tree | 757bf7e88a98bbe1c7252ac0d4c7132688bc2ee8 /include/linux/compiler.h | |
| parent | e79c315c69d7559a58d334480db127a21600f617 (diff) | |
drivers: merged Android Binder from 4.9
Change-Id: I857ef86b2d502293fb8c37398383dceaa21dd29f
Signed-off-by: Mister Oyster <oysterized@gmail.com>
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index c6d06e91f..4b13e0cb2 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -437,6 +437,8 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s * handlers, all running on the same CPU. */ #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) +#define READ_ONCE(x) ACCESS_ONCE(x) +#define WRITE_ONCE(x, val) ACCESS_ONCE(x) = val /* Ignore/forbid kprobes attach on very low level functions marked by this attribute: */ #ifdef CONFIG_KPROBES |
