aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/rcupdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/radix-tree/linux/rcupdate.h')
-rw-r--r--tools/testing/radix-tree/linux/rcupdate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/rcupdate.h b/tools/testing/radix-tree/linux/rcupdate.h
new file mode 100644
index 000000000000..f7129ea2a899
--- /dev/null
+++ b/tools/testing/radix-tree/linux/rcupdate.h
@@ -0,0 +1,9 @@
+#ifndef _RCUPDATE_H
+#define _RCUPDATE_H
+
+#include <urcu.h>
+
+#define rcu_dereference_raw(p) rcu_dereference(p)
+#define rcu_dereference_protected(p, cond) rcu_dereference(p)
+
+#endif