]> rtime.felk.cvut.cz Git - lincan.git/commitdiff
LinCAN partial update of thread helper support for 2.6.27+ kernels. sf-ocera-lincan/master-backup
authorppisa <ppisa>
Wed, 15 Oct 2008 01:29:41 +0000 (01:29 +0000)
committerppisa <ppisa>
Wed, 15 Oct 2008 01:29:41 +0000 (01:29 +0000)
lincan/include/kthread.h
lincan/src/kthread.c

index 2c570b05ba0a2a570be30f7bae3705cfb82290a7..395b04bd20364855d456b88b155cbf45a55f9e66 100644 (file)
 #include <linux/interrupt.h>
 
 #include <asm/unistd.h>
-#include <asm/semaphore.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+  #include <asm/semaphore.h>
+#else
+  #include <linux/semaphore.h>
+#endif
 
 /* a structure to store all information we need
    for our thread */
index 2d387d310841236948969324a83c11c98a1e0c64..ae43c306384a88f8878fda263d3c9f515449f6e0 100644 (file)
 #include <linux/signal.h>
 #include <linux/interrupt.h>
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27))
+  #include <asm/semaphore.h>
+#else
+  #include <linux/semaphore.h>
+#endif
 
-#include <asm/semaphore.h>
 #include <linux/smp_lock.h>
 
 #include "../include/kthread.h"