aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/rcupdate.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-10 18:01:03 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-10 18:01:03 +0100
commit2c76d23d0c7886cce135bf73cb0e99819a436990 (patch)
treef36e304fa62b4ec6e4170875d9941ee053e4baed /xen/include/xen/rcupdate.h
parent5bc894f65b3a26cd0ee1fc7658e95f2908fdbb0b (diff)
downloadxen-2c76d23d0c7886cce135bf73cb0e99819a436990.tar.gz
xen-2c76d23d0c7886cce135bf73cb0e99819a436990.tar.bz2
xen-2c76d23d0c7886cce135bf73cb0e99819a436990.zip
rcu: Update all rcu_read_lock() users to implement a dummy RCU read lock.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/rcupdate.h')
-rw-r--r--xen/include/xen/rcupdate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/rcupdate.h b/xen/include/xen/rcupdate.h
index 285e574e28..68f98acfda 100644
--- a/xen/include/xen/rcupdate.h
+++ b/xen/include/xen/rcupdate.h
@@ -145,14 +145,14 @@ typedef struct _rcu_read_lock rcu_read_lock_t;
*
* It is illegal to block while in an RCU read-side critical section.
*/
-#define rcu_read_lock(x) do { } while (0)
+#define rcu_read_lock(x) ((void)(x))
/**
* rcu_read_unlock - marks the end of an RCU read-side critical section.
*
* See rcu_read_lock() for more information.
*/
-#define rcu_read_unlock(x) do { } while (0)
+#define rcu_read_unlock(x) ((void)(x))
/*
* So where is rcu_write_lock()? It does not exist, as there is no