#ifdef CONFIG_RCU_TRACE
-#if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
+#if defined(CONFIG_TREE_RCU) \
+ || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) \
+ && defined(CONFIG_PREEMPT_RCU)) \
+ || defined(CONFIG_TREE_PREEMPT_RCU)
/*
* Tracepoint for grace-period events: starting and ending a grace
__entry->cpu, __get_str(qsevent))
)
-#endif /* #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) */
+#endif /*
+ * #if defined(CONFIG_TREE_RCU)
+ * || (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
+ * && defined(CONFIG_PREEMPT_RCU))
+ * || defined(CONFIG_TREE_PREEMPT_RCU)
+ */
/*
* Tracepoint for dyntick-idle entry/exit events. These take a string