datapath: Check for backported rcu_read_lock_held.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / rcupdate.h
index f96299f..99459ea 100644 (file)
@@ -11,7 +11,7 @@
 #define rcu_dereference_protected(p, c) (p)
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
+#ifndef HAVE_RCU_READ_LOCK_HELD
 static inline int rcu_read_lock_held(void)
 {
        return 1;