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 2c570b0..395b04b 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 2d387d3..ae43c30 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"