|
@@ -131,18 +131,6 @@ struct rcu_head {
|
|
*/
|
|
*/
|
|
#define rcu_read_unlock_bh() __rcu_read_unlock_bh()
|
|
#define rcu_read_unlock_bh() __rcu_read_unlock_bh()
|
|
|
|
|
|
-/*
|
|
|
|
- * Prevent the compiler from merging or refetching accesses. The compiler
|
|
|
|
- * is also forbidden from reordering successive instances of ACCESS_ONCE(),
|
|
|
|
- * but only when the compiler is aware of some particular ordering. One way
|
|
|
|
- * to make the compiler aware of ordering is to put the two invocations of
|
|
|
|
- * ACCESS_ONCE() in different C statements.
|
|
|
|
- *
|
|
|
|
- * This macro does absolutely -nothing- to prevent the CPU from reordering,
|
|
|
|
- * merging, or refetching absolutely anything at any time.
|
|
|
|
- */
|
|
|
|
-#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* rcu_dereference - fetch an RCU-protected pointer in an
|
|
* rcu_dereference - fetch an RCU-protected pointer in an
|
|
* RCU read-side critical section. This pointer may later
|
|
* RCU read-side critical section. This pointer may later
|