Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
arch
/
ia64
/
include
/
asm
/
barrier.h
diff --git
a/kernel/arch/ia64/include/asm/barrier.h
b/kernel/arch/ia64/include/asm/barrier.h
index
f6769eb
..
df896a1
100644
(file)
--- a/
kernel/arch/ia64/include/asm/barrier.h
+++ b/
kernel/arch/ia64/include/asm/barrier.h
@@
-66,23
+66,18
@@
do { \
compiletime_assert_atomic_type(*p); \
barrier(); \
do { \
compiletime_assert_atomic_type(*p); \
barrier(); \
-
ACCESS_ONCE(*p) = (v);
\
+
WRITE_ONCE(*p, v);
\
} while (0)
#define smp_load_acquire(p) \
({ \
} while (0)
#define smp_load_acquire(p) \
({ \
- typeof(*p) ___p1 =
ACCESS_ONCE(*p);
\
+ typeof(*p) ___p1 =
READ_ONCE(*p);
\
compiletime_assert_atomic_type(*p); \
barrier(); \
___p1; \
})
compiletime_assert_atomic_type(*p); \
barrier(); \
___p1; \
})
-/*
- * XXX check on this ---I suspect what Linus really wants here is
- * acquire vs release semantics but we can't discuss this stuff with
- * Linus just yet. Grrr...
- */
-#define set_mb(var, value) do { (var) = (value); mb(); } while (0)
+#define smp_store_mb(var, value) do { WRITE_ONCE(var, value); mb(); } while (0)
/*
* The group barrier in front of the rsm & ssm are necessary to ensure
/*
* The group barrier in front of the rsm & ssm are necessary to ensure