Whamcloud - gitweb
change tq_struct to work_struct in 2.6
authorwangdi <wangdi>
Thu, 9 Oct 2003 14:42:27 +0000 (14:42 +0000)
committerwangdi <wangdi>
Thu, 9 Oct 2003 14:42:27 +0000 (14:42 +0000)
lnet/router/router.h
lustre/portals/router/router.h

index dc9e4ed..4ace247 100644 (file)
@@ -71,7 +71,11 @@ typedef struct
 
 typedef struct
 {
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+        struct work_struct        kpru_tq;
+#else
         struct tq_struct        kpru_tq;
+#endif
         int                     kpru_nal_id;
         ptl_nid_t               kpru_nid;
         int                     kpru_alive;
index dc9e4ed..4ace247 100644 (file)
@@ -71,7 +71,11 @@ typedef struct
 
 typedef struct
 {
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
+        struct work_struct        kpru_tq;
+#else
         struct tq_struct        kpru_tq;
+#endif
         int                     kpru_nal_id;
         ptl_nid_t               kpru_nid;
         int                     kpru_alive;