fix: sched/tracing: Don't re-read p->state when emitting sched_switch event (v5.18)
[lttng-modules.git] / probes / lttng-probe-lock.c
index b3ad230204e7f1f897ca62dfbda5cebb0ad3a85f..8db7a5e3c71f245f54a611c89c88464118048465 100644 (file)
@@ -9,19 +9,14 @@
  */
 
 #include <linux/module.h>
-#include <linux/version.h>
+#include <lttng-kernel-version.h>
 #include <lttng-tracer.h>
 
 /*
  * Create the tracepoint static inlines from the kernel to validate that our
  * trace event macros match the kernel we run on.
  */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
 #include <trace/events/lock.h>
-#else
-#include <trace/events/lockdep.h>
-#endif
-
 #include <wrapper/tracepoint.h>
 
 /*
This page took 0.040675 seconds and 4 git commands to generate.